pc0 ip 192.168.10.1 mask 255.255.255.0 gw 192.168.10.254
pc1 ip 192.168.20.1 mask 255.255.255.0 gw 192.168.20.254
vlan 1 預設關閉
switch 0設定
Switch(config)#int vlan 1
Switch(config-if)#no sh 將vlan1啟動
Switch(config-if)#ip address 192.168.10.10 255.255.255.0 設定管理ip telnet用
Switch(config)#ip default-gateway 192.168.10.254 設定sw的gw
L3 switch 設定
先將int f0/1 設 no switchport 才可以輸入ip
Switch(config)#int f 0/1
Switch(config-if)#no switchportSwitch(config-if)#ip address 192.168.10.254 255.255.255.0
Switch(config)#int f 0/2
Switch(config-if)#no switchportSwitch(config-if)#ip address 192.168.20.254 255.255.255.0
Switch(config)#ip route 192.168.20.0 255.255.255.0 f0/2
Switch(config)#ip route 192.168.10.0 255.255.255.0 f0/1 (似乎不用 待確認)
Switch(config)#ip routing
沒有留言:
張貼留言