H3C Technologies H3C SecPath F1000-E User Manual

Page 579

Advertising
background image

554

[SecPath] ip local policy-based-route aaa

# Configure the IP addresses of the GigabitEthernet ports.

[SecPath] interface GigabitEthernet 0/1

[SecPath-GigabitEthernet 0/1] ip address 1.1.2.1 255.255.255.0

[SecPath-GigabitEthernet 0/1] quit

[SecPath] interface GigabitEthernet 0/2

[SecPath-GigabitEthernet 0/2] ip address 1.1.3.1 255.255.255.0

2.

Configure Router A:
# Configure the IP address of GigabitEthernet 0/1.

<RouterA> system-view

[RouterA] interface GigabitEthernet 0/1

[RouterA-GigabitEthernet0/1] ip address 1.1.2.2 255.255.255.0

[RouterA-GigabitEthernet0/1] quit

3.

Configure Router B:
# Configure the IP address of GigabitEthernet 0/1.

<RouterB> system-view

[RouterB] interface GigabitEthernet 0/1

[RouterB-GigabitEthernet0/1] ip address 1.1.3.2 255.255.255.0

[RouterB-GigabitEthernet0/1] quit

4.

Verify the configuration:
# Telnet to Router A (1.1.2.2/24) from SecPath. The operation succeeds.

<SecPath> telnet 1.1.2.2

Trying 1.1.2.2 ...

Press CTRL+K to abort

Connected to 1.1.2.2 ...

******************************************************************************

* Copyright (c) 2004-2011 Hangzhou H3C Tech. Co., Ltd. All rights reserved. *

* Without the owner's prior written consent, *

* no decompiling or reverse-engineering shall be allowed. *

******************************************************************************

# Telnet to Router B (1.1.3.2/24) from SecPath. The operation fails.

<SecPath> telnet 1.1.3.2

Trying 1.1.3.2 ...

Press CTRL+K to abort

Can't connect to the remote host!

# Ping Router B (1.1.3.2/24) from SecPath. The operation succeeds.

<SecPath> ping 1.1.3.2

PING 1.1.3.2: 56 data bytes, press CTRL_C to break

Reply from 1.1.3.2: bytes=56 Sequence=1 ttl=255 time=2 ms

Reply from 1.1.3.2: bytes=56 Sequence=2 ttl=255 time=1 ms

Reply from 1.1.3.2: bytes=56 Sequence=3 ttl=255 time=1 ms

Reply from 1.1.3.2: bytes=56 Sequence=4 ttl=255 time=1 ms

Reply from 1.1.3.2: bytes=56 Sequence=5 ttl=255 time=1 ms

--- 1.1.3.2 ping statistics ---

5 packet(s) transmitted

Advertising