Huawei S6700 Series Configuration Manual page 31

Ip routing
Hide thumbs Also See for S6700 Series:
Table of Contents

Advertisement

S6700 Series Ethernet Switches
Configuration Guide - IP Routing
l
l
Configuration Procedure
1.
2.
3.
4.
5.
Issue 01 (2012-03-15)
The destination address of Switch B is 1.1.3.0, and the next hop address of the static route
is 1.1.4.6.
The next hop address of the default route on Switch C is 1.1.4.5.
Create a VLAN to which each interface belongs.
The configuration details are not mentioned here.
Assign an IP address to each interface.
The configuration details are not mentioned here.
Configure the hosts.
Configure default gateways of the hosts PC1, PC2, and PC3 as 1.1.1.1, 1.1.2.1, and 1.1.3.1
respectively.
Configure static routes.
# Configure a default route on Switch A.
<SwitchA> system-view
[SwitchA] ip route-static 0.0.0.0 0.0.0.0 1.1.4.2
# Configure two static routes on Switch B.
<SwitchB> system-view
[SwitchB] ip route-static 1.1.1.0 255.255.255.0 1.1.4.1
[SwitchB] ip route-static 1.1.3.0 255.255.255.0 1.1.4.6
# Configure a default route on Switch C.
<SwitchC> system-view
[SwitchC] ip route-static 0.0.0.0 0.0.0.0 1.1.4.5
Verify the configuration.
# Check the routing table of Switch A.
[SwitchA] display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 8
Destination/Mask
Proto
0.0.0.0/0
Static 60
1.1.1.0/24
Direct 0
1.1.1.1/32
Direct 0
1.1.4.0/30
Direct 0
1.1.4.1/32
Direct 0
127.0.0.0/8
Direct 0
127.0.0.1/32
Direct 0
# Run the ping command to verify the connectivity.
[SwitchA] ping 1.1.3.1
PING 1.1.3.1: 56
data bytes, press CTRL_C to break
Reply from 1.1.3.1: bytes=56 Sequence=1 ttl=254 time=62 ms
Reply from 1.1.3.1: bytes=56 Sequence=2 ttl=254 time=63 ms
Reply from 1.1.3.1: bytes=56 Sequence=3 ttl=254 time=63 ms
Reply from 1.1.3.1: bytes=56 Sequence=4 ttl=254 time=62 ms
Reply from 1.1.3.1: bytes=56 Sequence=5 ttl=254 time=62 ms
--- 1.1.3.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 62/62/63 ms
# Run the tracert command to verify the connectivity.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Routes : 8
Pre
Cost
Flags
NextHop
0
RD
1.1.4.2
0
D
1.1.1.1
0
D
127.0.0.1
0
D
1.1.4.1
0
D
127.0.0.1
0
D
127.0.0.1
0
D
127.0.0.1
1 IP Static Route Configuration
Interface
Vlanif10
Vlanif30
InLoopBack0
Vlanif10
InLoopBack
InLoopBack0
InLoopBack0
12

Advertisement

Table of Contents
loading

Table of Contents