Hello 各位先進,
最近遇到一個網路大改接計畫,而小弟不幸對Cisco的概念不足,
好不容易規畫完畢,沒想到連設定Switch也得自己來,趕鴨子上架,向各位求救
1.換Cisco 2960,二台Switch作Stack.
2.VLAN重新切割,IP重規劃
現在VLAN切割後,上面說每一個VLAN都要有各自在網段內的Gateway,請問是下
ip default-gateway command嗎?
還是有其他的方式?
(因為我懷疑ip default-gateway command是專門設此Switch的default gateway,
不是每一個VLAN都可以設定?)
Thanks a lot.
我們切割出
GW
VLAN4 192.168.4.58~61 N/A
VLAN100 192.168.44.0~63 192.168.44.1
VLAN105 192.168.44.193~254 192.168.44.194
VLAN113 175.98.147.144~159 N/A
VLAN200 192.168.44.134~192 192.168.44.135
VLAN256 192.168.44.64~127 192.168.44.65
VLAN267 172.16.4.0~254 172.16.4.1
con t
vlan 4
name vlan4
interface vlan4
ip address 192.168.4.58 255.255.255.252
no shutdown
exit
con t
vlan 100
name vlan100
interface vlan100
ip address 192.168.44.0 255.255.255.192
no shutdown
ip default-gateway 192.168.44.1
exit
con t
vlan 105
name vlan105
interface vlan105
ip address 192.168.44.193 255.255.255.192
no shutdown
ip default-gateway 192.168.44.194
exit
con t
vlan 113
name vlan113
interface vlan113
ip address 175.98.147.144 255.255.255.192
no shutdown
exit
con t
vlan 200
name vlan200
interface vlan200
ip address 192.168.44.134 255.255.255.192
no shutdown
ip default-gateway 192.168.44.135
exit
con t
vlan 256
name vlan256
interface vlan256
ip address 192.168.44.64 255.255.255.192
no shutdown
ip default-gateway 192.168.44.65
exit
con t
vlan 267
name vlan267
interface vlan267
ip address 172.16.4.0 255.255.255.0
no shutdown
ip default-gateway 172.16.4.1
exit