1.配置IP
[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]ip address 12.1.1.1 24
[r1]interface g0/0/1
[r1-GigabitEthernet0/0/1]ip address 192.168.1.1 24
[r1]interface g0/0/2
[r1-GigabitEthernet0/0/2]ip address 172.16.1.1 24
创建环回
[r1]int LoopBack 0
[r1-LoopBack0]ip address 1.1.1.1 32
查看端口IP
[r1]display ip int brief
r2 r3 r4 r5 r6省略
2.DHCP配置
[r1]dhcp enable
[r1]ip pool 1
Info: It's successful to create an IP address pool.
[r1-ip-pool-1]network 192.168.1.0 mask 255.255.255.0
[r1-ip-pool-1]gateway-list 192.168.1.1
[r1-ip-pool-1]dns-list 8.8.8.8 114.114.114.114
pc获取固定IP
[r1-ip-pool-1]static-bind ip-address 192.168.1.11 mac-address 5489-981D-203F
[r1-ip-pool-1]static-bind ip-address 192.168.1.22 mac-address 5489-9818-0BF7
调用DHCP
[r1]int g0/0/1
[r1-GigabitEthernet0/0/1]dhcp select global
[r1]ip pool 2
Info: It's successful to create an IP address pool.
[r1-ip-pool-2]network 172.16.2.0 mask 255.255.255.0
[r1-ip-pool-2]gateway-list 172.16.2.1
[r1-ip-pool-2]static-bind ip-address 172.16.2.33 mac-address 5489-9871-599E
[r1-ip-pool-2]static-bind ip-address 172.16.2.44 mac-address 5489-9866-3A49
3. 创建环回,开启ospf,划分区域
[r1]ospf 100 router-id 1.1.1.1
[r1-ospf-100]area 1
[r1-ospf-100-area-0.0.0.1]network 0.0.0.0 255.255.255.255
[r3]ospf 100 router-id 3.3.3.3
[r3-ospf-100]area 1
[r3-ospf-100-area-0.0.0.1]network 23.1.1.2 0.0.0.0
[r3-ospf-100]area 0
[r3-ospf-100-area-0.0.0.0]network 123.1.1.1 0.0.0.0
[r3-ospf-100-area-0.0.0.0]network 3.3.3.3 0.0.0.0
r4的环回不能宣告
[r4-ospf-100-area-0.0.0.0]undo network 4.4.4.4 0.0.0.0
下放缺省
[r4-ospf-100]default-route-advertise always
4.配置只有R3为DR,没有BDR
[r4]interface g0/0/0
[r4-GigabitEthernet0/0/0]ospf dr-priority 0
[r5]interface g0/0/0
[r5-GigabitEthernet0/0/0]ospf dr-priority 0
[r6]interface g0/0/0
[r6-GigabitEthernet0/0/0]ospf dr-priority 0
5. 接口明文认证,密文认证
明文
[r1-GigabitEthernet0/0/0]ospf authentication-mode simple cipher 123
[r2-GigabitEthernet0/0/0]ospf authentication-mode simple cipher 123
密文
[r2-GigabitEthernet0/0/1]ospf authentication-mode simple cipher 123
[r2-GigabitEthernet0/0/1]ospf authentication-mode md5
6.加快收敛
[r1-GigabitEthernet0/0/0]ospf timer hello 5
7.区域明文认证
明文
[r1-ospf-100-area-0.0.0.1]ospf authentication-mode simple cipher 123
[r2-ospf-100-area-0.0.0.1]ospf authentication-mode simple cipher 123
[r3-ospf-100-area-0.0.0.1]ospf authentication-mode simple cipher 123
密文
[r4-ospf-100-area-0.0.0.2]ospf authentication-mode simple cipher 123
[r4-ospf-100-area-0.0.0.2]ospf authentication-mode md5
[r5-ospf-100-area-0.0.0.2]ospf authentication-mode simple cipher 123
[r5-ospf-100-area-0.0.0.2]ospf authentication-mode md5
[r6-ospf-100-area-0.0.0.2]ospf authentication-mode simple cipher 123
[r6-ospf-100-area-0.0.0.2]ospf authentication-mode md5
996

被折叠的 条评论
为什么被折叠?



