- Model post phòng thí nghiệm:
(PC01-Vlan02 + PC02-Vlan03) <---- SWL3 (DHCP relay agent) --- R1 ----> DHCP server (Windows 2003 server)
R1:
f0 / 0: 192.168.5.2: kết nối với máy chủ DHCP
f1 / 0: 192.168.4.2: kết nối với SWL3
SWL3:
Fa0 / 0: 192.168.4.1: để f1 / 0 của R1
vlan 2
192.168.2.1
ip helper-address: 192.168.5.1
vlan 3
192.168.3.1
ip helper-address: 192.168.5.1
- Configuration file net:.
# Tác nhân chuyển tiếp DHCP
[Localhost]
autostart = false
[[3640]]
[[Router R1]]
mô hình = 3640
image = D: \ dynagenlabs \ images \ c3640-là-mz_120-7_t.bin
ram = 64
console = 2001
slot 0 = NM-1FE-TX
khe cắm 1 = NM-1FE-TX
idlepc = 0x60339240
# Kết nối vật lý NIC
f0 / 0 = NIO_gen_eth: \ Device \ NPF_ {3D184727-39D3-4AE2-A39D-9A383180EB9C}
f1 / 0 = SWL3 Fa0 / 0
[[Router SWL3]]
mô hình = 3640
image = D: \ dynagenlabs \ images \ c3640-jk9o3s-mz.123-14.T7.extracted.bin
ram = 128
console = 2002
slot 0 = NM-16ESW
idlepc = 0x60530abc
# Kết nối để lặp adapter 01
Fa0 / 3 = NIO_gen_eth: \ Device \ NPF_ {91BF3234-1244-4397-82FA-1FD5E4086E45}
# Kết nối để lặp adapter 02
Fa0 / 4 = NIO_gen_eth: \ Device \ NPF_ {E88CA19A-D742-408D-A61C-7B1604CFACE6}
-
Description:
+ Router R1 connection with the NIC vật lý DHCP server: ip 192.168.5.1
+ On Windows 2003 server create 2 phạm vi IP:
lan02: 192.168.2.10 to 192.168.2.100, default-router, dns-server-server thắng and the same address 192.168.2.1
lan03: 192.168.3.10 to 192.168.3.100, default-router, dns-server-server thắng and the same address 192.168.3.1
- Create 2 network card loopback: use danh sách thiết bị mạng to get ID cho 2 card loopback, used on Thêm mới phần cứng máy chủ Windows 2003 to create 2 card loopback.
- Configuration cho router R1:
R1 (config) # int f0 / 0
R1 (config) # ip địa chỉ 192.168.5.2 255.255.255.0
R1 (config) # no shut
R1 (config) # inf f1 / 0
R1 (config) # ip địa chỉ 192.168.4.2 255.255.255.0
R1 (config) # no shut
R1 (config) # ip route 0.0.0.0 0.0.0.0 192.168.5.1
- SWL3 configuration:
Router (config) # hostname SWL3
SWL3 (config) # exit
SWL3 # vlan cơ sở dữ liệu
SWL3 (vlan) # vlan 2 tên lan02
SWL3 (vlan) # vlan 3 tên lan03
SWL3 (vlan) # exit
SWL3 # conf t
SWL3 (config) # int Fa0 / 3
SWL3 (config) # switchport chế độ truy cập
SWL3 (config) # vlan 2 switchport truy cập
SWL3 (config) # int Fa0 / 4
SWL3 (config) # switchport chế độ truy cập
SWL3 (config) # switchport truy cập vlan 3
SWL3 (config) # int Fa0 / 0
SWL3 (config) # no switchport
SWL3 (config) # ip địa chỉ 192.168.4.2 255.255.255.0
SWL3 (config) # no shut
SWL3 (config) # int vlan 2
SWL3 (config) # ip địa chỉ 192.168.2.1 255.255.255.0
SWL3 (config) # ip helper-address 192.168.5.1
SWL3 (config) # int vlan 3
SWL3 (config) # ip địa chỉ 192.168.3.1 255.255.255.0
SWL3 (config) # ip helper-address 192.168.5.1
SWL3 (config) # exit
SWL3 (config) # ip routing
SWL3 (config) # ip route 192.168.5.0 255.255.255.0 192.168.4.2
SWL3 (config) # end
- On PC, to execute router 192.168.4.0
tuyến đường thêm-p 192.168.4.0 mask 255.255.255.0 192.168.5.2
- Check again tra phòng thí nghiệm:
from the window lệnh: command type ipconfig / all => you will find 2 card and network Loopback01 Loopback02 be assigned 2 strip different from IP DHCP server, vd
Loopback01:
192.168.2.10
255.255.255.0
192.168.2.1
dns-server
192.168.2.1
Loopback02:
192.168.3.10
255.255.255.0
192.168.3.1
dns-server
192.168.3.1