15-10-2009, 11:36 AM
|
#1
|
Guest
|
Lab. DHCP server!
Lab. DHCP server
Cấu hình theo mô hình mạng trên sao cho router RA và RB đóng vai trò là DHCP server cấp IP cho các host thuộc LAN của mình.
- LAN1
IP Pool: 172.16.1.10 -172.16.1.100
Default Gateway: 172.16.1.1
DNS: 1.1.1.1
- LAN 2
IP Pool: 172.16.2.200 -172.16.2.250
Default Gateway: 172.16.2.1
DNS: 2.2.2.2+ Router RA
- Cấu hình địa chỉ IP
RA(config)#interface fa0/0
RA(config-if)#ip address 192.168.1.1 255.255.255.0
RA(config-if)#no shutdown
RA(config)#interface fa0/1
RA(config-if)#ip address 172.16.1.1 255.255.255.0
RA(config-if)#no shutdown
- Cấu hình định tuyến tĩnh:
RA(config)#ip route 172.16.2.0 255.255.255.0 192.168.1.2
- Cấu hình DHCP:
RA(config)#ip dhcp pool LAN_1
RA(dhcp-config)#network 172.16.1.0 255.255.255.0
RA(dhcp-config)#default-router 172.16.1.1
RA(dhcp-config)#dns-server 1.1.1.1
RA(dhcp-config)#exit
RA(config)#ip dhcp excluded-address 172.16.1.1 172.16.1.9
RA(config)#ip dhcp excluded-address 172.16.1.101 172.16.1.254
+ Router RB
- Cấu hình địa chỉ IP
RB(config)#interface fa0/0
RB(config-if)#ip address 192.168.1.2 255.255.255.0
RB(config-if)#no shutdown
RB(config)#interface fa0/1
RB(config-if)#ip address 172.16.2.1 255.255.255.0
RB(config-if)#no shutdown
- Cấu hình định tuyến tĩnh:
RB(config)#ip route 172.16.1.0 255.255.255.0 192.168.1.1
- Cấu hình DHCP:
RB(config)#ip dhcp pool LAN_2
RB(dhcp-config)#network 172.16.2.0 255.255.255.0
RB(dhcp-config)#default-router 172.16.2.1
RB(dhcp-config)#dns-server 2.2.2.2
RB(dhcp-config)#exit
RB(config)#ip dhcp excluded-address 172.16.2.1 172.16.1.199
RB(config)#ip dhcp excluded-address 172.16.2.251 172.16.1.254
|
|
|