1. Tasks:
Routers on the same network segment can communicate with each other
Configure the IP address on the AR1 g0/0/0 interface as 172.16.1.1 and the subnet mask as: 255.255.255.0
Configure the IP address on the AR2 g0/0/0 interface as 172.16.1.2 and the subnet mask as: 255.255.255.0
AR1 can ping AR2 successfully.
Topology
配置左侧路由器
[AR1]int g0/0/0
[AR1-GigabitEthernet0/0/0]ip add 172.16.1.1 24
配置右侧路由器
[AR2]int g0/0/0
[AR2-GigabitEthernet0/0/0]ip add 172.16.1.2 24
Test (found that the router on the left can ping the router on the right):
2. Tasks:
1. Configure an ip address for the G0/0/0 interface of AR1, the address is 192.168.1.1, and the mask is 255.255.255.0 2.
AR1 enables the DHCP service, and enables the DHCP function on the G0/0/0 interface, and the address pool selects the interface Mode
3. Configure the two PCs to obtain IP addresses automatically, and then test the connectivity between the two through the ping command
Topology
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 192.168.1.1 24
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]dhcp select interface
test:
Enable DHCP on PC1 and get an IP address
PC2 has successfully obtained an IP address
PC1 pings PC2 to test connectivity
3. Tasks
1. Configure the IP address of each device according to the diagram
2. The DNS server has been pre-configured, including the IP information of the domain name www.baidu.com, and the corresponding address is 192.168.1.200
3. Configure the dhcp function, so that the PC can obtain the IP address normally
Topology
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 192.168.1.1 24
[R1]dhcp enable
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]dhcp select interface
[R1-GigabitEthernet0/0/0]dhcp server dns-list 192.168.1.200
Configure DNS server
test:
PC1's DHCP obtains an IP address
PC2's DHCP obtains an IP address