IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

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

    u010255642发表于 2016-01-09 22:09:25
    love 0

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





沪ICP备19023445号-2号
友情链接