2014年2月20日星期四

Configuration Example of the IPv4 Static Route

This topic describes how to manually add the IPv4 static route to implement the interconnection between MA5683T  /MA5600

Configure the IP address of the Layer 3 interface.

The configurations for the three MA5600T/MA5603T devices are the same. The configuration of the MA5600T/MA5603T is considered as an example.

huawei(config)#vlan 2 smart

huawei(config)#port vlan 2 0/19 0

huawei(config)#interface vlanif 2

huawei(config-if-vlanif2)#ip address 1.1.1.2 24

huawei(config-if-vlanif2)#ip address 1.1.2.1 24 sub

huawei(config-if-vlanif2)#quit

Configure IPv4 static routes.

Configure an IPv4 static route for MA5600T/MA5603T_A.

huawei(config)#ip route-static 1.1.5.0 255.255.255.0 1.1.2.2

huawei(config)#ip route-static 1.1.4.0 255.255.255.0 1.1.2.2

Configure an IPv4 static route for MA5600T/MA5603T_B.

huawei(config)#ip route-static 1.1.5.0 255.255.255.0 1.1.3.1

huawei(config)#ip route-static 1.1.1.0 255.255.255.0 1.1.3.1

Configure IPv4 static routes for MA5600T/MA5603T_C.

huawei(config)#ip route-static 1.1.1.0 255.255.255.0 1.1.2.1

huawei(config)#ip route-static 1.1.4.0 255.255.255.0 1.1.3.2

Configure the host gateways.

Configure the default gateway of Host A to 1.1.1.2.

Configure the default gateway of Host B to 1.1.4.2.

Configure the default gateway of Host C to 1.1.5.2.

Save the data.

huawei#save

Configuration example of MA5600T/MA5603T_A.

vlan 2 smart

port vlan 2 0/19 0

interface vlanif 2

ip address 1.1.1.2 24

ip address 1.1.2.1 24 sub

quit

ip route-static 1.1.5.0 255.255.255.0 1.1.2.2


ip route-static 1.1.4.0 255.255.255.0 1.1.2.2

没有评论:

发表评论