Mục tiêu thực hành:
- Cấu hình cơ bản trên VPN.RT.
- Cấu hình cơ bản trên MPLS.RT.
- Cấu hình cơ bản trên CoreSwitch.
- Cấu hình cơ bản trên Firewall.
- Cấu hình cơ bản trên Site1.RT.
- Cấu hình cơ bản trên Site2.RT.
Truy cập vào "Lab 3-8 - Cau hinh dinh tuyen dong OSPF tren Cisco Router v1" tại Public Unetlab Server 24/7 để thực hành.
Cấu hình cơ bản trên VPN.RT.
hostname VPN-RTinterface Ethernet0/0ip address 10.0.0.3 255.255.255.248ip nat insideno shutdownexitinterface Ethernet0/1ip address 203.0.3.2 255.255.255.0ip nat outsideno shutdownexitip nat inside source list NatTraffic interface Ethernet0/1 overloadip route 0.0.0.0 0.0.0.0 203.0.3.1ip access-list extended NatTrafficpermit ip 10.0.0.0 0.0.255.255 anyexit
Cấu hình cơ bản trên MPLS.RT.
hostname MPLS-RTinterface Ethernet0/0ip address 10.0.0.2 255.255.255.248no shutdownexitinterface Ethernet0/1ip address 172.16.0.1 255.255.255.252no shutdownexitinterface Ethernet0/2ip address 172.16.0.5 255.255.255.252no shutdownexit
Cấu hình cơ bản trên CoreSwitch.
hostname CoreSwitchinterface Ethernet0/0no switchportip address 10.0.0.9 255.255.255.248exitvlan 10name VIPexitvlan 11name Staff01exitvlan 12name Staff01exitvlan 13name Staff01exitvlan 14name Staff01exitvlan 15name Staff01exitvlan 16name Staff01exitvlan 17name Staff01exitvlan 18name Staff01exitvlan 20name GuestWiFiexitvlan 30name Cameraexitvlan 40name Serverexitvlan 50name Manageexitvlan 100name Backboneexitinterface Ethernet0/1switchport trunk allowed vlan 10-14switchport trunk encapsulation dot1qswitchport mode trunkspanning-tree portfast trunkexitinterface Ethernet0/2switchport trunk allowed vlan 10,15-18switchport trunk encapsulation dot1qswitchport mode trunkspanning-tree portfast trunkexitinterface Ethernet0/3switchport trunk allowed vlan 30,40,50switchport trunk encapsulation dot1qswitchport mode trunkspanning-tree portfast trunkexitinterface Ethernet1/2switchport mode accessswitchport access vlan 100spanning-tree portfastexitinterface Ethernet1/3switchport mode accessswitchport access vlan 100spanning-tree portfastexitinterface Vlan10ip address 10.0.10.1 255.255.255.0no shutdownexitinterface Vlan11ip address 10.0.11.1 255.255.255.0no shutdownexitinterface Vlan12ip address 10.0.12.1 255.255.255.0no shutdownexitinterface Vlan13ip address 10.0.13.1 255.255.255.0exitinterface Vlan14ip address 10.0.14.1 255.255.255.0no shutdownexitinterface Vlan15ip address 10.0.15.1 255.255.255.0no shutdownexitinterface Vlan16ip address 10.0.16.1 255.255.255.0no shutdownexitinterface Vlan17ip address 10.0.17.1 255.255.255.0no shutdownexitinterface Vlan18ip address 10.0.18.1 255.255.255.0no shutdownexitinterface Vlan20ip address 10.0.20.1 255.255.255.0no shutdownexitinterface Vlan30ip address 10.0.30.1 255.255.255.0no shutdownexitinterface Vlan40ip address 10.0.40.1 255.255.255.0no shutdownexitinterface Vlan50ip address 10.0.50.1 255.255.255.0no shutdownexitinterface Vlan100ip address 10.0.0.1 255.255.255.248no shutdownexitip dhcp excluded-address 10.0.10.1ip dhcp excluded-address 10.0.11.1ip dhcp excluded-address 10.0.12.1ip dhcp excluded-address 10.0.13.1ip dhcp excluded-address 10.0.14.1ip dhcp excluded-address 10.0.15.1ip dhcp excluded-address 10.0.16.1ip dhcp excluded-address 10.0.17.1ip dhcp excluded-address 10.0.18.1ip dhcp excluded-address 10.0.19.1ip dhcp excluded-address 10.0.20.1ip dhcp excluded-address 10.0.30.1ip dhcp excluded-address 10.0.40.1ip dhcp excluded-address 10.0.50.1ip dhcp pool vlan10network 10.0.10.0 255.255.255.0default-router 10.0.10.1dns-server 8.8.8.8exitip dhcp pool vlan11network 10.0.11.0 255.255.255.0default-router 10.0.11.1dns-server 8.8.8.8exitip dhcp pool vlan12network 10.0.12.0 255.255.255.0default-router 10.0.12.1dns-server 8.8.8.8exitip dhcp pool vlan13network 10.0.13.0 255.255.255.0default-router 10.0.13.1dns-server 8.8.8.8exitip dhcp pool vlan14network 10.0.14.0 255.255.255.0default-router 10.0.14.1dns-server 8.8.8.8exitip dhcp pool vlan15network 10.0.15.0 255.255.255.0default-router 10.0.15.1dns-server 8.8.8.8exitip dhcp pool vlan16network 10.0.16.0 255.255.255.0default-router 10.0.16.1dns-server 8.8.8.8exitip dhcp pool vlan17network 10.0.17.0 255.255.255.0default-router 10.0.17.1dns-server 8.8.8.8exitip dhcp pool vlan18network 10.0.18.0 255.255.255.0default-router 10.0.18.1dns-server 8.8.8.8exitip dhcp pool vlan19network 10.0.19.0 255.255.255.0default-router 10.0.19.1dns-server 8.8.8.8exitip dhcp pool vlan20network 10.0.20.0 255.255.255.0default-router 10.0.20.1dns-server 8.8.8.8exitip dhcp pool vlan30network 10.0.30.0 255.255.255.0default-router 10.0.30.1dns-server 8.8.8.8exitip dhcp pool vlan40network 10.0.40.0 255.255.255.0default-router 10.0.40.1dns-server 8.8.8.8exitip dhcp pool vlan50network 10.0.50.0 255.255.255.0default-router 10.0.50.1dns-server 8.8.8.8exit
Cấu hình cơ bản trên Firewall.
hostname Firewallinterface Ethernet0/0ip address 10.0.0.10 255.255.255.248ip nat insideno shutdownexitinterface Ethernet0/1ip address dhcpip nat outsideno shutdownexitip route 0.0.0.0 0.0.0.0 203.0.4.1ip access-list extended NatTrafficpermit ip 10.0.0.0 0.0.255.255 anyexitip nat inside source list NatTraffic interface Ethernet0/1 overload
Cấu hình cơ bản trên Site1.RT.
hostname Site1-RTinterface Ethernet0/0no ip addressno shutdownexitinterface Ethernet0/0.10encapsulation dot1Q 10ip address 172.16.1.1 255.255.255.192ip nat insideexitinterface Ethernet0/0.20encapsulation dot1Q 20ip address 172.16.1.65 255.255.255.192ip nat insideexitinterface Ethernet0/0.30encapsulation dot1Q 30ip address 172.16.1.129 255.255.255.192ip nat insideexitinterface Ethernet0/1ip address 203.0.1.2 255.255.255.0ip nat outsideno shutdownexitinterface Ethernet0/2ip address 172.16.0.2 255.255.255.252no shutdownexitip route 0.0.0.0 0.0.0.0 203.0.1.1ip access-list extended NatTrafficdeny ip 172.16.1.0 0.0.0.255 10.0.0.0 0.255.255.255deny ip 172.16.1.0 0.0.0.255 172.16.0.0 0.31.255.255deny ip 172.16.1.0 0.0.0.255 192.168.0.0 0.0.255.255permit ip 172.16.1.0 0.0.0.255 anyexitip nat inside source list NatTraffic interface Ethernet0/1 overload
Cấu hình cơ bản trên Site2.RT.
hostname Site2-RTinterface Ethernet0/0no ip addressno shutdownexitinterface Ethernet0/0.10encapsulation dot1Q 10ip address 172.16.2.1 255.255.255.192ip nat insideexitinterface Ethernet0/0.20encapsulation dot1Q 20ip address 172.16.2.65 255.255.255.192ip nat insideexitinterface Ethernet0/0.30encapsulation dot1Q 30ip address 172.16.2.129 255.255.255.192ip nat insideexitinterface Ethernet0/1ip address 203.0.2.2 255.255.255.0ip nat outsideno shutdownexitinterface Ethernet0/2ip address 172.16.0.6 255.255.255.252exitip route 0.0.0.0 0.0.0.0 203.0.2.1ip access-list extended NatTrafficdeny ip 172.16.2.0 0.0.0.255 10.0.0.0 0.255.255.255deny ip 172.16.2.0 0.0.0.255 172.16.0.0 0.31.255.255deny ip 172.16.2.0 0.0.0.255 192.168.0.0 0.0.255.255permit ip 172.16.2.0 0.0.0.255 anyexitip nat inside source list NatTraffic interface Ethernet0/1 overload
Thực hành thêm các bài Lab cơ bản khác tại hạng mục Học Network CCNA R&S thông qua các bài thực hành.
0 comments