您的位置:首页 > 其它

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

2016-01-09 22:09 477 查看
<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):spoofingInterface                         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):spoofingInterface                         IP Address/Mask      Physical  Protocol  Vlanif20                          192.168.200.1/24     up        up        <lsw1>

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

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

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: