Huawei Quidway S9300 Configuration Manual page 163

Terabit routing switch
Table of Contents

Advertisement

Quidway S9300 Terabit Routing Switch
Configuration Guide - Security
Issue 06 (2010–01–08)
# Configure PE1.
<PE1> system-view
[PE1] interface loopback 1
[PE1-LoopBack1] ip address 1.1.1.9 32
[PE1-LoopBack1] quit
[PE1] interface gigabitethernet 2/0/0
[PE1-GigabitEthernet2/0/0] port link-type trunk
[PE1-GigabitEthernet2/0/0] port trunk allow-pass vlan 10
[PE1-GigabitEthernet2/0/0] quit
[PE1] interface vlanif 10
[PE1-Vlanif10] ip address 100.1.1.1 24
[PE1-Vlanif10] quit
[PE1] ospf
[PE1-ospf-1] area 0
[PE1-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0
[PE1-ospf-1-area-0.0.0.0] network 100.1.1.0 0.0.0.255
[PE1-ospf-1-area-0.0.0.0] quit
[PE1-ospf-1] quit
# Configure PE2.
<PE1> system-view
[PE2] interface loopback 1
[PE2-LoopBack1] ip address 2.2.2.9 32
[PE2-LoopBack1] quit
[PE2] interface gigabitethernet 2/0/0
[PE2-GigabitEthernet2/0/0] port link-type trunk
[PE2-GigabitEthernet2/0/0] port trunk allow-pass vlan 10
[PE2-GigabitEthernet2/0/0] quit
[PE2] interface vlanif 10
[PE2-Vlanif10] ip address 100.1.1.2 24
[PE2-Vlanif10] quit
[PE2] ospf
[PE2-ospf-1] area 0
[PE2-ospf-1-area-0.0.0.0] network 2.2.2.9 0.0.0.0
[PE2-ospf-1-area-0.0.0.0] network 100.1.1.0 0.0.0.255
[PE2-ospf-1-area-0.0.0.0] quit
[PE2-ospf-1] quit
After the configuration, run the display ip routing-table command on PE1 and PE2. You
can view that PEs can learn routes and ping each other.
Take the display on PE1 as an example.
<PE1> display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 6
Destination/Mask
Interface
1.1.1.9/32
InLoopBack0
2.2.2.9/32
100.1.1.0/24
100.1.1.1/32
InLoopBack0
127.0.0.0/8
InLoopBack0
127.0.0.1/32
InLoopBack0
<PE1> ping 100.1.1.2
PING 100.1.1.2: 56
Reply from 100.1.1.2: bytes=56 Sequence=1 ttl=255 time=2 ms
Reply from 100.1.1.2: bytes=56 Sequence=2 ttl=255 time=1 ms
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Routes : 6
Proto
Pre
Cost
Direct 0
0
OSPF
10
1
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
data bytes, press CTRL_C to break
3 DHCP Snooping Configuration
Flags NextHop
D
127.0.0.1
D
100.1.1.2
D
100.1.1.1
D
127.0.0.1
D
127.0.0.1
D
127.0.0.1
Vlanif10
vlanif10
3-53

Advertisement

Table of Contents
loading

Table of Contents