思科2960trunk vlan配置及路由IP配置 - gavanwanggw

时间:2024-02-18 10:05:57

思科2960trunk vlan配置及路由IP配置

en

conf t

vlan id

end

conf t

inter rang gi 0/0/1-x

switchport access vlan id

no shutdown

exit

(config)#interface range gigabitEthernet 1/0/23-24
(config-if-range)#switchport mode trunk
(config-if-range)#switchport trunk allowed vlan all
(config-if-range)#no shutdown


IP配置:
interface FastEthernet1/0
 ip address  161.139.128.31  255.255.255.128
 ip accounting output-packets
 duplex full
 speed auto
exit
 
ip route 0.0.0.0 0.0.0.0  161.139.128.1
end
wr