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

来源:互联网 发布:sql select from 嵌套 编辑:程序博客网 时间:2024/05/17 23:17

<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/



0 0
原创粉丝点击