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 autoexit ip route 0.0.0.0 0.0.0.0 161.139.128.1endwr