ĐỀ BÀI : mã sinh viên 57 Địa router 10.57.xy.0/24 ===cấu hình================= ====Tại R1:======= Int loopback Ip add 10.57.11.1 255.255.255.0 Int f0/0 No shut Ip add 10.57.16.1 255.255.255.0 Router ospf Net 10.57.11.0 0.0.0.255 a Net 10.57.16.0 0.0.0.255 a ====R2====== int loop back ip add 10.57.22.1 255.255.255.0 int f0/0 no shut ip add 10.57.27.2 255.255.255.0 router rip net 10.57.27.0 net 10.57.22.0 ======R3======== Int loop back Ip add 10.57.33.1 255.255.255.0 Int f0/0 No shut Ip add 10.57.38.3 255.255.255.0 Router ospf Net 10.57.38.0 0.0.0.255 a Net 10.57.33.0 0.0.0.255 a ======R6============= int loopback ip add 10.57.66.1 255.255.255.0 int f0/0 no shut ip add 10.57.16.6 255.255.255.0 router ospf net 10.57.16.0 0.0.0.255 a net 10.57.66.0 0.0.0.255 a ======R7=========== Int loop back Ip add 10.57.77.1 255.255.255.0 Int f0/1 No shut Ip add 10.57.27.7 255.255.255.0 Router rip Net 10.57.27.0 Net 10.57.77.0 =======R8============== Int loopback Ip add 10.57.88.1 255.255.255.0 Int f1/0 No shut Ip add 10.57.38.8 255.255.255.0 Router ospf Net 10.57.88.0 0.0.0.255 a Net 10.57.38.0 0.0.0.255 a =========R4=========== Int loopback Ip add 4.4.4.4 255.255.255.255 Int f2/0 No shut Ip add 10.57.45.4 255.255.255.0 Mpls ip Router ospf Net 10.57.45.0 0.0.0.255 a Net 4.4.4.4 0.0.0.0 a Int f0/0 No shut Xconnect 5.5.5.5 encapsulation mpls Int f0/1 No shut Xconnect 5.5.5.5 encapsulation mpls Int f1/0 No shut Xconnect 5.5.5.5 encapsulation mpls =========R5============= Int loopback Ip add 5.5.5.5 255.255.255.255 Int f2/0 No shut Ip add 10.57.45.5 255.255.255.0 Mpls ip Router ospf Net 10.57.45.0 0.0.0.255 a Net 5.5.5.5 0.0.0.0 a Int f0/0 No shut Xconnect 4.4.4.4 encapsulation mpls Int f0/1 No shut Xconnect 4.4.4.4 encapsulation mpls Int f1/0 No shut Xconnect 4.4.4.4 encapsulation mpls ========Hết Bài 1=================== BÀI 2: ======R1============= Int loopback Ip add 10.57.11.1 255.255.255.0 Int f0/0 No shut Ip add 10.57.17.1 255.255.255.0 Router ospf Net 10.57.17.0 0.0.0.255 a Net 10.57.11.0 0.0.0.255 a ======R2============== Int loopback Ip add 10.57.22.1 255.255.255.0 Int f0/1 No shut Ip add 10.57.28.2 255.255.255.0 Router rip Net 10.57.28.0 Net 10.57.22.0 =========R7=========== Int loopback Ip add 10.57.77.1 255.255.255.0 Int f0/0 No shut Ip add 10.57.17.7 255.255.255.0 Router ospf Net 10.57.17.0 0.0.0.255 a Net 10.57.77.0 0.0.0.255 a =======R8========= Int loopback Ip add 10.57.88.1 255.255.255.0 Int f2/0 No shut Ip add 10.57.28.8 255.255.255.0 Router rip Net 10.57.28.0 Net 10.57.88.0 ======R3=========== Int loopback Ip add 3.3.3.3 255.255.255.255 Int f1/0 No shut Ip add 10.57.34.3 255.255.255.0 Mpls ip Int f2/0 No shut Ip add 10.57.35.3 255.255.255.0 Mpls ip Router ospf Net 10.57.34.0 0.0.0.255 a Net 10.57.35.0 0.0.0.255 a Net 3.3.3.3 0.0.0.0 a Int f0/0 No shut Xconnect 6.6.6.6 encap mpls Ex Int f0/1 No shut Xconnect 6.6.6.6 encap mpls ==========R4============ Int loopback Ip add 4.4.4.4 255.255.255.255 Int f1/0 No shut Ip add 10.57.34.4 255.255.255.0 Mpls ip Int f0/0 No shut Ip add 10.57.46.4 255.255.255.0 Mpls ip Router ospf Net 10.57.46.0 0.0.0.255 a Net 10.57.34.0 0.0.0.255 a Net 4.4.4.4 0.0.0.0 a =========R5============= Int loopback Ip add 5.5.5.5 255.255.255.255 Int f2/0 No shut Ip add 10.57.35.5 255.255.255.0 Mpls ip Int f0/1 No shut Ip add 10.57.56.5 255.255.255.0 Mpls ip Router ospf Net 10.57.56.0 0.0.0.255 a Net 10.57.35.0 0.0.0.255 a Net 5.5.5.5 0.0.0.0 a =========R6=============== Int loopback Ip add 6.6.6.6 255.255.255.255 Int f0/0 No shut Ip add 10.57.46.6 255.255.255.0 Mpls ip Int f0/1 No shut Ip add 10.57.56.6 255.255.255.0 Mpls ip Router ospf Net 10.57.56.0 0.0.0.255 a Net 10.57.46.0 0.0.0.255 a Net 6.6.6.6 0.0.0.0 a int f1/0 No shut Xconnect 3.3.3.3 encap mpls exit int f2/0 No shut xconnect 3.3.3.3 encap mpls exit int f2/0 xconnect 3.3.3.3 encap mpls ======xong ========== Ping kiem tra ket qua R1 va R7 R1(conf)#ping 10.57.77.1 Ping kiem tra giua R2 va R8 R2(conf)#ping 10.57.88.1 ‘kiểm tra bảng chuyển tiếp nhãn)’ R3#show mpls forwarding