交换、路由与防火墙手记(9)- 三层vlan通信

<Huawei>sy

Enter system view, return user view withCtrl+Z.

[Huawei]sysname lsw2

<Huawei>sy

Enter system view, return user view withCtrl+Z.

[Huawei]sysname lsw3

<Huawei>sy

Enter system view, return user view withCtrl+Z.

[Huawei]sysname lsw1

[lsw1]vlan batch 10 20

[lsw1]interface gig 0/0/1

[lsw1-GigabitEthernet0/0/1]port link-typeaccess

[lsw1-GigabitEthernet0/0/1]port defaultvlan  10

[lsw1]interface gig 0/0/2

[lsw1-GigabitEthernet0/0/2]port link-typeaccess

[lsw1-GigabitEthernet0/0/2]port default vlan20

[lsw1-GigabitEthernet0/0/2]quit

[lsw1]interface vlanif 10

[lsw1-Vlanif10]ip address 192.168.100.1255.255.255.0

[lsw1-Vlanif10]interface vlanif 20

[lsw1-Vlanif20]ipaddress 192.168.200.1 255.255.255.0

<lsw1>dispip interface brief vlanif 10

*down:administratively down

^down:standby

(l):loopback

(s):spoofing

Interface                         IP Address/Mask      Physical  Protocol 

Vlanif10                          192.168.100.1/24     up        up       

<lsw1>

<lsw1>dispip interface brief vlanif 20

*down:administratively down

^down:standby

(l):loopback

(s):spoofing

Interface                         IP Address/Mask      Physical  Protocol 

Vlanif20                          192.168.200.1/24     up        up       

<lsw1>

本博客所有内容是原创,如果转载请注明来源

http://blog.csdn.net/myhaspl/


交换、路由与防火墙手记(9)- 三层vlan通信_第1张图片

你可能感兴趣的:(交换、路由与防火墙手记(9)- 三层vlan通信)