目次
2.1 インターフェイス IP とルーティング プロトコルの構成
EVE-NG で H3C イメージを使用すると、bgp の設定後に OSPF が失敗します。イメージに問題がある可能性がありますが、HCL には問題ありません。
1 トポロジー
2 構成手順
2.1 インターフェイス IP とルーティング プロトコルの構成
PE1
interface LoopBack 0
ip address 1.1.1.9 32
quit
interface GigabitEthernet 0/0/1
ip address 10.1.1.1 255.255.255.0
quit
ospf 1
area 1
network 1.1.1.9 0.0.0.0
network 10.1.1.0 0.0.0.255
quit
quit
P
interface LoopBack 0
ip address 2.2.2.9 32
quit
interface GigabitEthernet 0/0/1
ip address 10.1.1.2 255.255.255.0
quit
interface GigabitEthernet 0/0/2
ip address 20.1.1.1 255.255.255.0
quit
ospf 1
area 1
network 2.2.2.9 0.0.0.0
network 10.1.1.0 0.0.0.255
network 20.1.1.0 0.0.0.255
quit
quit
PE2
interface LoopBack 0
ip address 3.3.3.9 32
quit
interface GigabitEthernet 0/0/1
ip address 20.1.1.2 255.255.255.0
quit
ospf 1
area 1
network 3.3.3.9 0.0.0.0
network 20.1.1.0 0.0.0.255
quit
quit
VPC1
ip 11.1.1.100/24
VPC2
ip 11.1.1.200/24
OSPF 学習ステータスの表示
2.2 MPLSLDPの設定
PE1
mpls lsr-id 1.1.1.9
mpls label advertise non-null
mpls ldp
quit
interface GigabitEthernet 0/0/1
mpls enable
mpls ldp enable
quit
P
mpls lsr-id 2.2.2.9
mpls label advertise non-null
mpls ldp
quit
interface GigabitEthernet 0/0/1
mpls enable
mpls ldp enable
quit
interface GigabitEthernet 0/0/2
mpls enable
mpls ldp enable
quit
PE2
mpls lsr-id 3.3.3.9
mpls label advertise non-null
mpls ldp
quit
interface GigabitEthernet 0/0/1
mpls enable
mpls ldp enable
quit
LDP LSP を表示する
2.3 L2VPN PW(BGP)の設定
PE1
l2vpn enable
bgp 100
peer 3.3.3.9 as-number 100
peer 3.3.3.9 connect-interface loopback 0
address-family l2vpn
peer 3.3.3.9 enable
quit
quit
xconnect-group vpna
auto-discovery bgp
route-distinguisher 2:2
vpn-target 2:2 export-extcommunity
vpn-target 2:2 import-extcommunity
site 1 range 10 default-offset 0
connection remote-site-id 2
ac interface GigabitEthernet 0/0/2
quit
quit
quit
quit
PE2
l2vpn enable
bgp 100
peer 1.1.1.9 as-number 100
peer 1.1.1.9 connect-interface loopback 0
address-family l2vpn
peer 1.1.1.9 enable
quit
quit
xconnect-group vpna
auto-discovery bgp
route-distinguisher 2:2
vpn-target 2:2 export-extcommunity
vpn-target 2:2 import-extcommunity
site 2 range 10 default-offset 0
connection remote-site-id 1
ac interface GigabitEthernet 0/0/2
quit
quit
quit
quit
PWを見る
2.4 L2VPN の検証