1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
| en configure terminal vlan 345 exit vlan 346 exit interface fastEthernet 0/2 switchport trunk encapsulation dot1q switchport mode trunk interface vlan 345 ip address 172.16.45.254 255.255.255.0 no shutdown exit interface vlan 346 ip address 172.16.46.254 255.255.255.0 no shutdown exit
!创建虚拟接口 vlan 347 exit vlan 348 exit interface vlan 347 ip address 172.16.49.253 255.255.255.0 no shutdown interface vlan 348 ip address 172.16.50.254 255.255.255.0 no shutdown exit
interface fastEthernet 0/1 switchport mode access switchport access vlan 347 exit interface fastEthernet 0/3 switchport mode access switchport access vlan 348 exit ip routing
|