交换、路由与防火墙手记(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>
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/
相关文章推荐
- C 结构体的使用
- 【二】jekyll 的使用
- 在Windows下配置Apache + OpenSSL 经测试可以使用
- vector<KeyPoint> vecKeyPoints 的数据结构
- Win10开发:Flyout的使用及长按弹出菜单的实现
- jsp乱码问题的解决,java乱码
- zTree学习笔记(一)
- Linux 驱动模块编译
- MySQL进阶
- android随笔20——控件的layout属性
- annotation的几句注记
- Linux 中的 sed 命令详解
- 算法分析与设计复习
- 算法 - 矩阵乘法
- 进程调度相关命令解析
- 算法基础训练题(二)
- 用DropDownList实现的省市级三级联动
- 【Linux】教你一步一步在CentOS Linux release 7.1上卸载vsftpd FTP服务器
- NodeJS in Visual Studio
- H264之ffmpeg解码