ospf综合实验

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

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值