客户华为路由器交换机调试
客户华为路由器交换机调试
客户拓扑如下所示:
路由器配置:
[Core]und ip route-static 0.0.0.0 0.0.0.0 192.168.31.1
[Core]display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 13 Routes : 13
Destination/Mask Proto Pre Cost Flags NextHop Interface
0.0.0.0/0 Static 60 0 RD 192.168.2.1 Vlanif1
1.1.1.0/24 Direct 0 0 D 1.1.1.1 Vlanif100
1.1.1.1/32 Direct 0 0 D 127.0.0.1 Vlanif100
10.0.0.0/24 Direct 0 0 D 10.0.0.254 Vlanif99
10.0.0.254/32 Direct 0 0 D 127.0.0.1 Vlanif99
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
192.168.2.0/24 Direct 0 0 D 192.168.2.2 Vlanif1
192.168.2.2/32 Direct 0 0 D 127.0.0.1 Vlanif1
192.168.30.0/24 Direct 0 0 D 192.168.30.254 Vlanif30
192.168.30.254/32 Direct 0 0 D 127.0.0.1 Vlanif30
192.168.31.0/24 Direct 0 0 D 192.168.31.254 Vlanif31
192.168.31.254/32 Direct 0 0 D 127.0.0.1 Vlanif31
[Core]
[Core]
[Core]ping 192.168.2.1
PING 192.168.2.1: 56 data bytes, press CTRL_C to break
Reply from 192.168.2.1: bytes=56 Sequence=1 ttl=255 time=1 ms
Reply from 192.168.2.1: bytes=56 Sequence=2 ttl=255 time=1 ms
--- 192.168.2.1 ping statistics ---
2 packet(s) transmitted
2 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/1/1 ms
[Core]ping
Login authentication
Username:
Username:
Username:
Please retry after 5 seconds.
Username:admin
Password:
-----------------------------------------------------------------------------
User last login information:
-----------------------------------------------------------------------------
Access Type: Serial
IP-Address : --
Time : 2021-08-23 00:18:32+00:00
-----------------------------------------------------------------------------
<Huawei>sy
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]ip ro
[Huawei]ip route
[Huawei]ip route-static 192.168.30.0 255.255.255.0 192.168.2.2
[Huawei]ping 192.168.30.254
PING 192.168.30.254: 56 data bytes, press CTRL_C to break
Reply from 192.168.30.254: bytes=56 Sequence=1 ttl=254 time=1 ms
Reply from 192.168.30.254: bytes=56 Sequence=2 ttl=254 time=1 ms
Reply from 192.168.30.254: bytes=56 Sequence=3 ttl=254 time=1 ms
Reply from 192.168.30.254: bytes=56 Sequence=4 ttl=254 time=1 ms
Reply from 192.168.30.254: bytes=56 Sequence=5 ttl=254 time=1 ms
--- 192.168.30.254 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/1/1 ms
[Huawei]sva
[Huawei]ssa
[Huawei]sav
[Huawei]save
核心交换机
[Core]interface Vlanif 1
[Core]interface Vlanif 1
[Core-Vlanif1]ip add
[Core-Vlanif1]ip address 192.168.2.2 255.255.255.0
[Core-Vlanif1]nos
[Core-Vlanif1]und
[Core-Vlanif1]undo shu
[Core-Vlanif1]undo shutdown
Info: Interface Vlanif1 is not shutdown.
[Core]ping 192.168.2.1
PING 192.168.2.1: 56 data bytes, press CTRL_C to break
Reply from 192.168.2.1: bytes=56 Sequence=1 ttl=255 time=1 ms
Reply from 192.168.2.1: bytes=56 Sequence=2 ttl=255 time=1 ms
Reply from 192.168.2.1: bytes=56 Sequence=3 ttl=255 time=1 ms
Reply from 192.168.2.1: bytes=56 Sequence=4 ttl=255 time=1 ms
Reply from 192.168.2.1: bytes=56 Sequence=5 ttl=255 time=1 ms
--- 192.168.2.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/1/1 ms
[Core]display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 13 Routes : 14
Destination/Mask Proto Pre Cost Flags NextHop Interface
0.0.0.0/0 Static 60 0 RD 192.168.31.1 Vlanif31
Static 60 0 RD 192.168.2.1 Vlanif1
1.1.1.0/24 Direct 0 0 D 1.1.1.1 Vlanif100
1.1.1.1/32 Direct 0 0 D 127.0.0.1 Vlanif100
10.0.0.0/24 Direct 0 0 D 10.0.0.254 Vlanif99
10.0.0.254/32 Direct 0 0 D 127.0.0.1 Vlanif99
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
192.168.2.0/24 Direct 0 0 D 192.168.2.2 Vlanif1
192.168.2.2/32 Direct 0 0 D 127.0.0.1 Vlanif1
192.168.30.0/24 Direct 0 0 D 192.168.30.254 Vlanif30
192.168.30.254/32 Direct 0 0 D 127.0.0.1 Vlanif30
192.168.31.0/24 Direct 0 0 D 192.168.31.254 Vlanif31
192.168.31.254/32 Direct 0 0 D 127.0.0.1 Vlanif31
[Core]und ip route-static 0.0.0.0 0.0.0.0 192.168.31.1
[Core]display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 13 Routes : 13
Destination/Mask Proto Pre Cost Flags NextHop Interface
0.0.0.0/0 Static 60 0 RD 192.168.2.1 Vlanif1
1.1.1.0/24 Direct 0 0 D 1.1.1.1 Vlanif100
1.1.1.1/32 Direct 0 0 D 127.0.0.1 Vlanif100
10.0.0.0/24 Direct 0 0 D 10.0.0.254 Vlanif99
10.0.0.254/32 Direct 0 0 D 127.0.0.1 Vlanif99
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
192.168.2.0/24 Direct 0 0 D 192.168.2.2 Vlanif1
192.168.2.2/32 Direct 0 0 D 127.0.0.1 Vlanif1
192.168.30.0/24 Direct 0 0 D 192.168.30.254 Vlanif30
192.168.30.254/32 Direct 0 0 D 127.0.0.1 Vlanif30
192.168.31.0/24 Direct 0 0 D 192.168.31.254 Vlanif31
192.168.31.254/32 Direct 0 0 D 127.0.0.1 Vlanif31
vlan 30
description network
vlan 31
description wireless
vlan 99
management-vlan
vlan 100
description management-AP
#
ip pool 30
gateway-list 192.168.30.254
network 192.168.30.0 mask 255.255.255.0
excluded-ip-address 192.168.30.1 192.168.30.30
lease day 0 hour 4 minute 0
dns-list 218.2.135.1 114.114.114.114
#
ip pool 31
gateway-list 192.168.31.254
network 192.168.31.0 mask 255.255.255.0
excluded-ip-address 192.168.31.1 192.168.31.10
lease day 0 hour 4 minute 0
dns-list 218.2.135.1 114.114.114.114
#
ip pool 1
gateway-list 1.1.1.1
network 1.1.1.0 mask 255.255.255.0
excluded-ip-address 1.1.1.2
dns-list 114.114.114.114
#
interface Vlanif30
ip address 192.168.30.254 255.255.255.0
dhcp select global
#
interface Vlanif31
ip address 192.168.31.254 255.255.255.0
dhcp select global
#
interface Vlanif99
ip address 10.0.0.254 255.255.255.0
#
interface Vlanif100
ip address 1.1.1.1 255.255.255.0
dhcp select global
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
port link-type access
port default vlan 30
loopback-detect enable
stp edged-port enable
dhcp snooping enable
#
interface GigabitEthernet0/0/2
port link-type access
port default vlan 30
loopback-detect enable
stp edged-port enable
dhcp snooping enable
#
interface GigabitEthernet0/0/3
port link-type access
port default vlan 30
loopback-detect enable
stp edged-port enable
dhcp snooping enable
#
interface GigabitEthernet0/0/4
port link-type access
port default vlan 30
loopback-detect enable
stp edged-port enable
dhcp snooping enable
#
interface GigabitEthernet0/0/5
port link-type access
port default vlan 30
loopback-detect enable
stp edged-port enable
dhcp snooping enable
#
interface GigabitEthernet0/0/6
port link-type access
port default vlan 30
loopback-detect enable
stp edged-port enable
dhcp snooping enable
#
interface GigabitEthernet0/0/7
port link-type access
port default vlan 30
loopback-detect enable
stp edged-port enable
dhcp snooping enable
#
interface GigabitEthernet0/0/8
port link-type access
port default vlan 30
loopback-detect enable
stp edged-port enable
dhcp snooping enable
#
interface GigabitEthernet0/0/9
port link-type access
port default vlan 30
loopback-detect enable
stp edged-port enable
dhcp snooping enable
#
interface GigabitEthernet0/0/10
port link-type access
port default vlan 30
loopback-detect enable
stp edged-port enable
dhcp snooping enable
#
interface GigabitEthernet0/0/11
port link-type access
port default vlan 30
loopback-detect enable
stp edged-port enable
dhcp snooping enable
#
interface GigabitEthernet0/0/12
port link-type access
port default vlan 30
loopback-detect enable
stp edged-port enable
dhcp snooping enable
#
interface GigabitEthernet0/0/13
port link-type access
port default vlan 30
loopback-detect enable
stp edged-port enable
dhcp snooping enable
#
interface GigabitEthernet0/0/14
port link-type access
port default vlan 30
loopback-detect enable
stp edged-port enable
dhcp snooping enable
#
interface GigabitEthernet0/0/15
port link-type access
port default vlan 30
loopback-detect enable
stp edged-port enable
dhcp snooping enable
#
interface GigabitEthernet0/0/16
port link-type access
port default vlan 30
loopback-detect enable
stp edged-port enable
dhcp snooping enable
#
interface GigabitEthernet0/0/17
port link-type access
port default vlan 30
loopback-detect enable
stp edged-port enable
dhcp snooping enable
#
interface GigabitEthernet0/0/18
port link-type access
port default vlan 30
loopback-detect enable
stp edged-port enable
dhcp snooping enable
#
interface GigabitEthernet0/0/19
port link-type access
port default vlan 30
loopback-detect enable
stp edged-port enable
dhcp snooping enable
#
interface GigabitEthernet0/0/20
port link-type access
port default vlan 30
loopback-detect enable
stp edged-port enable
dhcp snooping enable
#
interface GigabitEthernet0/0/21
description AR
port link-type access
port default vlan 31
stp edged-port enable
#
interface GigabitEthernet0/0/22
description S1720
port link-type trunk
port trunk allow-pass vlan 2 to 4094
loopback-detect enable
#
interface GigabitEthernet0/0/23
port link-type trunk
port trunk allow-pass vlan 2 to 4094
loopback-detect enable
#
interface GigabitEthernet0/0/24
description AC6003
port link-type trunk
port trunk allow-pass vlan 2 to 4094
loopback-detect enable
#
interface GigabitEthernet0/0/25
loopback-detect enable
#
interface GigabitEthernet0/0/26
loopback-detect enable
#
interface GigabitEthernet0/0/27
loopback-detect enable
#
interface GigabitEthernet0/0/28
loopback-detect enable
#
interface NULL0
#
cpu-defend policy 1
auto-defend alarm enable
auto-defend protocol 8021x arp icmp dhcp igmp ttl-expired tcp telnet udp
auto-port-defend alarm enable
#
arp ip-conflict-detect enable
#
ip route-static 0.0.0.0 0.0.0.0 192.168.2.1
[Core]display vlan ?
INTEGER<1-4094> VLAN ID
summary Summary information of VLAN
vlan-name Specify VLAN name
| Matching output
<cr>
[Core]display vlan
The total number of VLANs is: 5
--------------------------------------------------------------------------------
U: Up; D: Down; TG: Tagged; UT: Untagged;
MP: Vlan-mapping; ST: Vlan-stacking;
#: ProtocolTransparent-vlan; *: Management-vlan;
--------------------------------------------------------------------------------
VID Type Ports
--------------------------------------------------------------------------------
1 common UT:GE0/0/22(U) GE0/0/23(U) GE0/0/24(U) GE0/0/25(D)
GE0/0/26(D) GE0/0/27(D) GE0/0/28(D)
30 common UT:GE0/0/1(U) GE0/0/2(D) GE0/0/3(D) GE0/0/4(D)
GE0/0/5(D) GE0/0/6(D) GE0/0/7(D) GE0/0/8(U)
GE0/0/9(U) GE0/0/10(D) GE0/0/11(D) GE0/0/12(U)
GE0/0/13(D) GE0/0/14(D) GE0/0/15(D) GE0/0/16(D)
GE0/0/17(D) GE0/0/18(D) GE0/0/19(D) GE0/0/20(U)
TG:GE0/0/22(U) GE0/0/23(U) GE0/0/24(U)
31 common UT:GE0/0/21(U)
TG:GE0/0/22(U) GE0/0/23(U) GE0/0/24(U)
99 *common TG:GE0/0/22(U) GE0/0/23(U) GE0/0/24(U)
100 common TG:GE0/0/22(U) GE0/0/23(U) GE0/0/24(U)
VID Status Property MAC-LRN Statistics Description
--------------------------------------------------------------------------------
1 enable default enable disable VLAN 0001
30 enable default enable disable network
31 enable default enable disable wireless
99 enable default enable disable VLAN 0099
100 enable default enable disable management-AP
[Core] dis
[Core] display ip rou
[Core] display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 11 Routes : 11
Destination/Mask Proto Pre Cost Flags NextHop Interface
0.0.0.0/0 Static 60 0 RD 192.168.2.1 Vlanif1
1.1.1.0/24 Direct 0 0 D 1.1.1.1 Vlanif100
1.1.1.1/32 Direct 0 0 D 127.0.0.1 Vlanif100
10.0.0.0/24 Direct 0 0 D 10.0.0.254 Vlanif99
10.0.0.254/32 Direct 0 0 D 127.0.0.1 Vlanif99
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
192.168.30.0/24 Direct 0 0 D 192.168.30.254 Vlanif30
192.168.30.254/32 Direct 0 0 D 127.0.0.1 Vlanif30
192.168.31.0/24 Direct 0 0 D 192.168.31.254 Vlanif31
192.168.31.254/32 Direct 0 0 D 127.0.0.1 Vlanif31