1. 程式人生 > >企業應用實例分析

企業應用實例分析

status snooping size color return dad opera eth available

技術分享圖片

問題分析:
子網劃分
192.168.100.00000000~01111111
192.168.100.0~127/25

192.168.100.10000000~10111111
192.168.100.128~191/26

192.168.100.11000000~11011111
192.168.100.192~223/27

192.168.100.11100000~11111111
192.168.100.224~255/27

拓撲圖如下
技術分享圖片
SW5配置如下
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]
[Huawei]
[Huawei]vl
[Huawei]vlan b
[Huawei]vlan batch 10 20 30 40

Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]
Feb 6 2018 19:22:24-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 4, th
e change loop count is 0, and the maximum number of records is 4095.
[Huawei]
[Huawei]dhcp
[Huawei]dhcp en
[Huawei]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[Huawei]
Feb 6 2018 19:22:54-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 5, th
e change loop count is 0, and the maximum number of records is 4095.
[Huawei]
[Huawei]q
<Huawei>
<Huawei>und
<Huawei>undo t
<Huawei>undo terminal m‘
<Huawei>undo terminal m
<Huawei>undo terminal monitor
Info: Current terminal monitor is off.
<Huawei>
<Huawei>
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]
[Huawei]
[Huawei]in
[Huawei]int
[Huawei]interface eth
[Huawei]interface Ethernet0/0/1
[Huawei-Ethernet0/0/1]p
[Huawei-Ethernet0/0/1]port l
[Huawei-Ethernet0/0/1]port link-t
[Huawei-Ethernet0/0/1]port link-type tr
[Huawei-Ethernet0/0/1]port link-type trunk
[Huawei-Ethernet0/0/1]p
[Huawei-Ethernet0/0/1]port tr
[Huawei-Ethernet0/0/1]port trunk a
[Huawei-Ethernet0/0/1]port trunk allow-pass vl
[Huawei-Ethernet0/0/1]port trunk allow-pass vlan a
[Huawei-Ethernet0/0/1]port trunk allow-pass vlan all
[Huawei-Ethernet0/0/1]q
[Huawei]i
[Huawei]int
[Huawei]interface eth
[Huawei]interface Ethernet0/0/2
[Huawei-Ethernet0/0/2]p
[Huawei-Ethernet0/0/2]port l
[Huawei-Ethernet0/0/2]port link-t
[Huawei-Ethernet0/0/2]port link-type a
[Huawei-Ethernet0/0/2]port link-type access
[Huawei-Ethernet0/0/2]p
[Huawei-Ethernet0/0/2]port a
[Huawei-Ethernet0/0/2]port de
[Huawei-Ethernet0/0/2]port default vl
[Huawei-Ethernet0/0/2]port default vlan 10
[Huawei-Ethernet0/0/2]q
[Huawei]int
[Huawei]interface eth
[Huawei]interface Ethernet0/0/1
[Huawei-Ethernet0/0/1]p
[Huawei-Ethernet0/0/1]port l
[Huawei-Ethernet0/0/1]port link-t
[Huawei-Ethernet0/0/1]port link-type a
[Huawei-Ethernet0/0/1]port link-type access
Error: Please renew the default configurations.
[Huawei-Ethernet0/0/1]
[Huawei-Ethernet0/0/1]dis th
#
interface Ethernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
return
[Huawei-Ethernet0/0/1]q
[Huawei]in
[Huawei]info-centert
[Huawei]int
[Huawei]interface eth0/0/3
[Huawei-Ethernet0/0/3]p
[Huawei-Ethernet0/0/3]port l
[Huawei-Ethernet0/0/3]port link-t
[Huawei-Ethernet0/0/3]port link-type a
[Huawei-Ethernet0/0/3]port link-type access
[Huawei-Ethernet0/0/3]p
[Huawei-Ethernet0/0/3]port de
[Huawei-Ethernet0/0/3]port default vl
[Huawei-Ethernet0/0/3]port default vlan 20
[Huawei-Ethernet0/0/3]q

SW6配置
<Huawei>
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]
[Huawei]
[Huawei]vl
[Huawei]vlan be
[Huawei]vlan b
[Huawei]vlan batch
Feb 6 2018 19:22:22-08:00 Huawei %%01PHY/1/PHY(l)[0]: Ethernet0/0/3: change
status to down 10 20
Feb 6 2018 19:22:23-08:00 Huawei %%01PHY/1/PHY(l)[1]: Ethernet0/0/3: change
status to up 30 40
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]vlan batch 10 20 30 40
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]
Feb 6 2018 19:22:35-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 5, th
e change loop count is 0, and the maximum number of records is 4095.
[Huawei]
[Huawei]dhcp
[Huawei]dhcp-snooping
[Huawei]dhcp en
[Huawei]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[Huawei]
[Huawei]
[Huawei]
Feb 6 2018 19:22:55-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5
.25.191.3.1 configurations have been changed. The current change number is 6, th
e change loop count is 0, and the maximum number of records is 4095.
[Huawei]
[Huawei]
[Huawei]q
<Huawei>
<Huawei>und
<Huawei>undo t
<Huawei>undo terminal m
<Huawei>undo terminal monitor
Info: Current terminal monitor is off.
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]
[Huawei]
[Huawei]int
[Huawei]interface eh
[Huawei]interface et
[Huawei]interface Eth0/0/1
[Huawei-Ethernet0/0/1]p
[Huawei-Ethernet0/0/1]port lt
[Huawei-Ethernet0/0/1]port l
[Huawei-Ethernet0/0/1]port link-t
[Huawei-Ethernet0/0/1]port link-type tr
[Huawei-Ethernet0/0/1]port link-type trunk
[Huawei-Ethernet0/0/1]p
[Huawei-Ethernet0/0/1]port tr
[Huawei-Ethernet0/0/1]port trunk a
[Huawei-Ethernet0/0/1]port trunk allow-pass c
[Huawei-Ethernet0/0/1]port trunk allow-pass v
[Huawei-Ethernet0/0/1]port trunk allow-pass vlan a
[Huawei-Ethernet0/0/1]port trunk allow-pass vlan all
[Huawei-Ethernet0/0/1]q
[Huawei]in
[Huawei]int
[Huawei]interface eth
[Huawei]interface Ethernet0/0/2
[Huawei-Ethernet0/0/2]p
[Huawei-Ethernet0/0/2]port l
[Huawei-Ethernet0/0/2]port link-t
[Huawei-Ethernet0/0/2]port link-type a
[Huawei-Ethernet0/0/2]port link-type access
[Huawei-Ethernet0/0/2]p
[Huawei-Ethernet0/0/2]port de
[Huawei-Ethernet0/0/2]port default vl
[Huawei-Ethernet0/0/2]port default vlan 30
[Huawei-Ethernet0/0/2]q
[Huawei]in
[Huawei]int
[Huawei]interface eth
[Huawei]interface Ethernet0/0/3
[Huawei-Ethernet0/0/3]
[Huawei-Ethernet0/0/3]p
[Huawei-Ethernet0/0/3]port l
[Huawei-Ethernet0/0/3]port link-t
[Huawei-Ethernet0/0/3]port link-type a
[Huawei-Ethernet0/0/3]port link-type access
[Huawei-Ethernet0/0/3]p
[Huawei-Ethernet0/0/3]port a
[Huawei-Ethernet0/0/3]port de
[Huawei-Ethernet0/0/3]port default vl
[Huawei-Ethernet0/0/3]port default vlan 40
[Huawei-Ethernet0/0/3] User interface con0 is available

SW4配置
[Huawei]p
[Huawei]ip po
[Huawei]ip policy-based-route
[Huawei]ip pool 30
Info:It‘s successful to create an IP address pool.
[Huawei-ip-pool-30]net
[Huawei-ip-pool-30]network 192.168.1.192 ma
[Huawei-ip-pool-30]network 192.168.1.192 mask 27
[Huawei-ip-pool-30]de
[Huawei-ip-pool-30]ga
[Huawei-ip-pool-30]gateway-list 192.168.1.222
[Huawei-ip-pool-30]q
[Huawei]ip p
[Huawei]ip po
[Huawei]ip policy-based-route
[Huawei]ip pool 40
Info:It‘s successful to create an IP address pool.
[Huawei-ip-pool-40]net
[Huawei-ip-pool-40]network 192.168.1.224 ma
[Huawei-ip-pool-40]network 192.168.1.224 mask 27
[Huawei-ip-pool-40]g
[Huawei-ip-pool-40]gateway-list 192.168.1.254
[Huawei-ip-pool-40]q
[Huawei]
[Huawei]int
[Huawei]interface vl
[Huawei]interface Vlanif 10
[Huawei-Vlanif10]dh
[Huawei-Vlanif10]dhcp se
[Huawei-Vlanif10]dhcp select g
[Huawei-Vlanif10]dhcp select global
[Huawei-Vlanif10]q
[Huawei]int
[Huawei]interface vl
[Huawei]interface Vlanif 20
[Huawei-Vlanif20]p
[Huawei-Vlanif20]dh
[Huawei-Vlanif20]dhcp se
[Huawei-Vlanif20]dhcp select g
[Huawei-Vlanif20]dhcp select global
[Huawei-Vlanif20]q
[Huawei]in
[Huawei]int
[Huawei]interface 30
^
Error: Wrong parameter found at ‘^‘ position.
[Huawei]interface vl
[Huawei]interface Vlanif 30
[Huawei-Vlanif30]p
[Huawei-Vlanif30]dhc
[Huawei-Vlanif30]dhcp se
[Huawei-Vlanif30]dhcp select g
[Huawei-Vlanif30]dhcp select global
[Huawei-Vlanif30]q
[Huawei]int
[Huawei]interface vl
[Huawei]interface Vlanif 40
[Huawei-Vlanif40]dh
[Huawei-Vlanif40]dhcp se
[Huawei-Vlanif40]dhcp select g
[Huawei-Vlanif40]dhcp select global
[Huawei-Vlanif40]q

企業應用實例分析