当前位置:首页 > 计算机网络实训
10.0.13.0/24发布到OSPF区域0。 [R3]ospf 1 router-id 10.0.3.3 [R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 10.0.3.0 0.0.0.255 [R3-ospf-1-area-0.0.0.0]network 10.0.13.0 0.0.0.255 待OSPF收敛完成后,查看R1、R2和R3上的路由表。
检测R2和R1(10.0.1.1)以及R2和R3(10.0.3.3)间的连通性。
执行display ospf peer命令,查看OSPF邻居状态。
# interface GigabitEthernet0/0/0 ip address 10.0.13.1 255.255.255.0 ospf dr-priority 200 ospf timer hello 15
# interface GigabitEthernet0/0/1 ip address 10.0.12.1 255.255.255.0 # interface LoopBack0
ip address 10.0.1.1 255.255.255.0 # ospf 1 router-id 10.0.1.1 area 0.0.0.0
network 10.0.1.0 0.0.0.255 network 10.0.12.0 0.0.0.255 network 10.0.13.0 0.0.0.255 # user-interface con 0
authentication-mode password set authentication password
cipher %$%$+L'YR&IZt'4,)>-*#lH\ user-interface vty 0 4 # return
# interface GigabitEthernet0/0/1 ip address 10.0.12.2 255.255.255.0 # interface LoopBack0
ip address 10.0.2.2 255.255.255.0 # ospf 1 router-id 10.0.2.2 area 0.0.0.0
network 10.0.2.0 0.0.0.255 network 10.0.12.0 0.0.0.255
# user-interface con 0
authentication-mode password set authentication password cipher user-interface vty 0 4 # return
# interface GigabitEthernet0/0/0 ip address 10.0.13.3 255.255.255.0 ospf dr-priority 100 ospf timer hello 15 # interface LoopBack0
ip address 10.0.3.3 255.255.255.0 # interface LoopBack2
ip address 172.16.0.1 255.255.255.0 # ospf 1 router-id 10.0.3.3 default-route-advertise area 0.0.0.0
network 10.0.3.0 0.0.0.255 network 10.0.13.0 0.0.0.255
# ip route-static 0.0.0.0 0.0.0.0 LoopBack2
# user-interface con 0
authentication-mode password
set authentication password cipher %$%$ksXDMg7Ry6yUU:63:DQ) user-interface vty 0 4 # return
4 DHCP原理与配置
在大型企业网络中,会有大量的主机或设备需要获取IP地址等网络参数。如果采用手工配置,工作量大且不好管理,如果有用户擅自修改网络参数,还有可能会造成IP地址冲突等问题。使用动态主机配置协议DHCP(Dynamic Host Configuration Protocol)来分配IP地址等网络参数,可以减少管理员的工作量,避免用户手工配置网络参数时造成的地址冲突。
共分享92篇相关文档