beautypg.com

H3C Technologies H3C SR8800 User Manual

Page 72

background image

56

[RouterC-rip-1] network 192.168.3.0

[RouterC-rip-1] network 192.168.4.0

[RouterC-rip-1] quit

2.

Configure IP addresses and BFD parameters for the interfaces:
# Configure Router A.

[RouterA] bfd session init-mode active

[RouterA] interface GigabitEthernet 4/1/1

[RouterA-GigabitEthernet4/1/1] ip address 192.168.3.1 24

[RouterA-GigabitEthernet4/1/1] quit

[RouterA] interface GigabitEthernet 4/1/2

[RouterA-GigabitEthernet4/1/2] ip address 192.168.1.1 24

[RouterA-GigabitEthernet4/1/2] bfd min-transmit-interval 500

[RouterA-GigabitEthernet4/1/2] bfd min-receive-interval 500

[RouterA-GigabitEthernet4/1/2] bfd detect-multiplier 7

[RouterA-GigabitEthernet4/1/2] quit

# Configure Router B.

system-view

[RouterB] interface GigabitEthernet 4/1/2

[RouterB-GigabitEthernet4/1/2] ip address 192.168.1.2 24

[RouterB-GigabitEthernet4/1/2] quit

[RouterB] interface GigabitEthernet 4/1/1

[RouterB-GigabitEthernet4/1/1] ip address 192.168.2.1 24

# Configure Router C.

[RouterC] bfd session init-mode active

[RouterC] interface GigabitEthernet 4/1/1

[RouterC-GigabitEthernet4/1/1] ip address 192.168.2.2 24

[RouterC-GigabitEthernet4/1/1] bfd min-transmit-interval 500

[RouterC-GigabitEthernet4/1/1] bfd min-receive-interval 500

[RouterC-GigabitEthernet4/1/1] bfd detect-multiplier 6

[RouterC-GigabitEthernet4/1/1] quit

[RouterC] interface GigabitEthernet 4/1/2

[RouterC-GigabitEthernet4/1/2] ip address 192.168.4.2 24

[RouterC-GigabitEthernet4/1/2] quit

# Configure Router D.

system-view

[RouterD] interface GigabitEthernet 4/1/2

[RouterD-GigabitEthernet4/1/2] ip address 192.168.4.1 24

[RouterD-GigabitEthernet4/1/2] quit

[RouterD] interface GigabitEthernet 4/1/1

[RouterD-GigabitEthernet4/1/1] ip address 192.168.3.2 24

[RouterD-GigabitEthernet4/1/1] quit

3.

Configure static routes:
# Configure a static route to Router C on Router A.

[RouterA] ip route-static 192.168.2.0 24 GigabitEthernet4/1/2 192.168.1.2

[RouterA] ip route-static 101.1.1.1 24 null 0

[RouterA] quit

# Configure a static route to Router A on Router C.