Static Route Dhcp

  • May 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Static Route Dhcp as PDF for free.

More details

  • Words: 320
  • Pages: 3
- Cấu hình địa chỉ IP cho Router 1 và Router 2 R1>enable R1#config t R1(config)#hostname R1 R1(config)#int serial 0/0 R1(config-if)#ip address 192.1.12.1 255.255.255.252 R1(config-if)#no shutdown R1(config-if)#clock rate 64000 R1(config-if)#exit R1(config)#int ethernet 0/0 R1(config-if)#ip address 192.168.1.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#exit R1(config-if)#int lo 0 R1(config-if)#ip add 10.0.0.1 255.255.255.0 R1(config-if)#exit R2>enable R2#config t R2(config)#hostname R1 R2(config)#int serial 0 R2(config-if)#ip address 192.1.12.2 255.255.255.252 R2(config-if)#no shutdown R2(config-if)#clock rate 64000 R2(config-if)#exit R2(config)#int ethernet 0 R2(config-if)#ip address 100.0.0.1 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#exit - Cấu hình địa chỉ IP cho Router 3 và Router 4 R3>enable R3#config t R3(config)#hostname R3 R3(config)#int serial 0 R3(config-if)#ip address 192.1.34.2 255.255.255.252 R3(config-if)#no shutdown R3(config-if)#clock rate 64000 R3(config-if)#exit R3(config)#int ethernet 0 R3(config-if)#ip address 100.0.0.2 255.255.255.0 R3(config-if)#no shutdown R3(config-if)#exit R4>enable R4#config t R4(config)#hostname R3 R4(config)#int serial 0

R4(config-if)#ip address 192.1.34.1 255.255.255.252 R4(config-if)#no shutdown R4(config-if)#clock rate 64000 R4(config-if)#exit R4(config)#int ethernet 0/0 R4(config-if)#ip address 192.168.4.1 255.255.255.0 R4(config-if)#no shutdown R4(config-if)#exit R4(config)#int lo 0 R4(config-if)#ip add 40.0.0.1 255.255.255.0 R4(config-if)#exit - Cấu hình Static Route trên Router 1 R1(config)#ip route 192.168.4.0 255.255.255.0 192.1.12.2 R1(config)#ip route 40.0.0.0 255.255.255.0 192.1.12.2 - Cấu hình Static Route trên Router 2 R2(config)#ip route 10.0.0.0 255.255.255.0 192.1.12.1 R2(config)#ip route 192.168.1.0 255.255.255.0 192.1.12.1 R2(config)#ip route 192.168.4.0 255.255.255.0 100.0.0.2 R2(config)#ip route 40.0.0.0 255.255.255.0 100.0.0.2 - Cấu hình Static Route trên Router 4 R1(config)#ip route 192.168.1.0 255.255.255.0 192.1.34.2 R1(config)#ip route 10.0.0.0 255.255.255.0 192.1.34.2 - Cấu hình Static Route trên Router 3 R2(config)#ip route 40.0.0.0 255.255.255.0 192.1.34.1 R2(config)#ip route 192.168.4.0 255.255.255.0 192.1.34.1 R2(config)#ip route 192.168.1.0 255.255.255.0 100.0.0.1 R2(config)#ip route 10.0.0.0 255.255.255.0 100.0.0.1 - Kiểm tra bảng route table tại các router R1#show ip route - Cấu hình DHCP tại R1 và R4 cấp IP cho các máy Client R1(config)#ip dhcp pool net1 R1(config-dhcp)#network 192.168.1.0 /24 R1(config-dhcp)#default-router 192.168.1.1 192.168.1.100 R1(config-dhcp)#dns-server 203.113.113.1 203.162.4.190 R1(config-dhcp)#domain-name test.com R1(config-dhcp)#exit R1(config)#ip dhcp excluded-address 192.168.1.1 192.168.1.10 R1(config)#ip dhcp excluded-address 192.168.1.13 R4(config)#ip dhcp pool net4 R4(config-dhcp)#network 192.168.4.0 /24 R4(config-dhcp)#default-router 192.168.4.1 192.168.4.100 R4(config-dhcp)#dns-server 203.113.113.1 203.162.4.190

R4(config-dhcp)#domain-name test.com R4(config-dhcp)#exit R4(config)#ip dhcp excluded-address 192.168.4.1 192.168.4.10 R4(config)#ip dhcp excluded-address 192.168.4.13

Related Documents

Static Route Dhcp
May 2020 0
Static Route - Lab
November 2019 5
Dhcp
November 2019 31
Dhcp
October 2019 31
Dhcp
June 2020 18
Dhcp
November 2019 33