OSPF基础练习+路由DHCP
OSPF基础练习+路由DHCP
网络拓扑说明:R1 R2 R3通过OSPF协议相连,
R1、R3上启动DHCP服务,
使PC1、CP2自动获取IP地址后能够相互通信
R1配置
R1配置G0/0/0
192.168.1.1 24
interface LoopBack1
ip address 4.4.4.4 255.255.255.255
R1配置
端口配置G0/0/1
ip address 192.168.3.1 255.255.255.0
dhcp select global
DHCP配置
ip pool 192.168.3.0
gateway-list 192.168.3.1
network 192.168.3.0 mask 255.255.255.0
dns-list 114.114.114.114
ospf配置
ospf 1 router-id 4.4.4.4
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 192.168.1.1 0.0.0.0
network 192.168.3.0 0.0.0.255
R2配置
R2配置
OSPF配置
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 23.1.1.1 0.0.0.0
network 192.168.1.2 0.0.0.0
端口配置
interface GigabitEthernet0/0/0
ip address 192.168.1.2 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 23.1.1.1 255.255.255.0
R3配置
R3配置
DHCP配置
ip pool 192.168.14.0
gateway-list 192.168.14.1
network 192.168.14.0 mask 255.255.255.0
dns-list 114.114.114.114 192.168.14.250
接口配置
interface GigabitEthernet0/0/1
ip address 23.1.1.2 255.255.255.0
#
interface GigabitEthernet0/0/2
ip address 192.168.14.1 255.255.255.0
dhcp select global
OSPF配置
ospf 1 router-id 5.5.5.5
area 0.0.0.0
network 5.5.5.5 0.0.0.0
network 23.1.1.2 0.0.0.0
network 192.168.14.0 0.0.0.255
