实验目的:使R1和R6相互利用私网网段进行通信。
实验内容:配置了RIP OSPF BGP MPLS VRF,信息量很大,值得试验。
1. 配置IP和路由协议
R1
conf t
int E1/0
ip addr 192.168.1.1 255.255.255.0
no sh
R2
conf t
int E1/0
ip addr 192.168.1.2 255.255.255.0
no sh
int F0/0
ip addr 10.1.10.1 255.255.255.0
no sh
interface Loopback0
ip addr 10.1.1.2 255.255.255.255
router ospf 100
router-id 10.1.1.2
passive-interface Loopback0
network 10.0.0.0 0.255.255.255 area 0
R3
conf t
int F0/0
ip addr 10.1.10.2 255.255.255.0
no sh
int F0/1
ip addr 10.1.20.1 255.255.255.0
no sh
interface Loopback0
ip addr 10.1.1.3 255.255.255.255
router ospf 100
router-id 10.1.1.3
passive-interface Loopback0
network 10.0.0.0 0.255.255.255 area 0
R4
conf t
int F0/0
ip addr 10.1.20.2 255.255.255.0
no sh
int F0/1
ip addr 10.1.30.1 255.255.255.0
no sh
interface Loopback0
ip addr 10.1.1.4 255.255.255.255
router ospf 100
router-id 10.1.1.4
passive-interface Loopback0
network 10.0.0.0 0.255.255.255 area 0
R5
conf t
int F0/1
ip addr 10.1.30.2 255.255.255.0
no sh
int E1/0
ip addr 192.168.4.1 255.255.255.0
no sh
interface Loopback0
ip addr 10.1.1.5 255.255.255.255
router ospf 100
router-id 10.1.1.5
passive-interface Loopback0
network 10.0.0.0 0.2