VLAN最详细经典配置

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Console及telnet配置
<Sysname> system-view
[Sysname] user-interface aux 0
[Sysname-ui-aux0] authentication-mode password
[Sysname-ui-aux0] set authentication password simple(cipher密文) 123456 [Sysname-ui-aux0] user privilege level 3
[Sysname-ui-aux0] speed 19200
[Sysname-ui-aux0] screen-length 30
[Sysname-ui-aux0] history-command max-size 20
[Sysname-ui-aux0] idle-timeout 0
[Sysname-ui-aux0]quite
[Sysname]user-interface vty 0 4
[Sysname-ui-vty0 4] authentication-mode password
[Sysname-ui-vty0 4] set authentication password simple (cipher密文) 123456 [Sysname-ui-vty0 4] user privilege level 3
[Sysname-ui-vty0 4] protocol inbound telnet
[Sysname-ui-vty0 4] screen-length 30
[Sysname-ui-vty0 4] history-command max-size 20
[Sysname-ui-vty0 4] idle-timeout 0
[Sysname-ui-vty0 4]quite
[Sysname] interface Vlan-interface 1
[Sysname-Vlan-interface1] ip address 192.168.1.1 255.255.255.0 (配置Vlan1 ip地址)[Sysname-Vlan-interface1] quite
[Sysname]local-user admin
[Sysname-luser-admin] service-type telnet level 3
[Sysname-luser-admin] password simple admin
[Sysname-luser-admin] quite
VLAN配置
<SwitchA> system-view
[SwitchA] vlan 100
[SwitchA-vlan100] description DeptHR
[SwitchA-vlan100] port Ethernet 1/0/2 to Ethernet1/0/10
[SwitchA-vlan100] quit
[SwitchA] vlan 200
[SwitchA-vlan200] description DeptFIN
[SwitchA-vlan200] port Ethernet 1/0/11 to Ethernet1/0/20
[SwitchA-vlan200] quit
[SwitchA] interface Vlan-interface 100
[SwitchA-Vlan-interface100] ip address 192.168.3.1 24
[SwitchA-Vlan-interface100] quit
[SwitchA] interface Vlan-interface 200
[SwitchA-Vlan-interface200] ip address 192.168.2.1 24
<SwitchB> system-view
[SwitchB] vlan 100
[SwitchB-vlan100] description DeptHR
[SwitchB-vlan100] port Ethernet 1/0/21
[SwitchB-vlan100] quit
[SwitchB] vlan 200
[SwitchB-vlan200] description DeptFIN
[SwotchB-vlan200] port Ethernet1/0/22 Ethernet 1/0/23
[SwitchB-vlan200] quit
配置switchA与switchB两个相连端口做trunk链路,允许VLAN间数据传输[SwitchA] interface Ethernet 1/0/1
[SwitchA-Ethernet1/0/1] port link-type trunk
[SwitchA-Ethernet1/0/1 port trunk permit vlan 100
[SwitchA-Ethernet1/0/1] port trunk permit vlan 200
[SwitchB] interface Ethernet 1/0/24
[SwitchB-Ethernet1/0/24] port link-type trunk
[SwitchB-Ethernet1/0/24] port trunk permit vlan 100
[SwitchB-Ethernet1/0/24] port trunk permit vlan 200
创建静态端口汇聚(1-3端口做汇聚)
<Sysname> system-view
[Sysname] link-aggregation group 1 mode static
[Sysname] interface Ethernet1/0/1
[Sysname-Ethernet1/0/1] port link-aggregation group 1
[Sysname-Ethernet1/0/1] quit
[Sysname] interface Ethernet1/0/2
[Sysname-Ethernet1/0/2] port link-aggregation group 1
[Sysname-Ethernet1/0/2] quit
[Sysname] interface Ethernet1/0/3
[Sysname-Ethernet1/0/3] port link-aggregation group 1
交换机做静态路由(ip route-static des-ip nexthop),RIP路由(network network-address) OSPF路由。

端口绑定配置
<SwitchA> system-view
[SwitchA] interface Ethernet1/0/1
[SwitchA-Ethernet1/0/1] am user-bind mac-addr 0001-0002-0003 ip-addr 10.10.1.1。

相关文档
最新文档