ospf路由表
自动获取IP地址
[r4]interface g0/0/1.1
[r4-GigabitEthernet0/0/1.1]ip ad
[r4-GigabitEthernet0/0/1.1]ip address 192.168.3.1 24
[r4-GigabitEthernet0/0/1.1]dot1q termination vid 20
[r4]inte
[r6]acl 3000
[r6-acl-adv-3000]rul
[r6-acl-adv-3000]rule d
[r6-acl-adv-3000]rule deny tcp sou
[r6-acl-adv-3000]rule deny tcp source 192.168.3.2 0.0.0.0 de
[r6-acl-adv-3000]rule deny tcp source 172.168.65.1 0.0.0.0 destination 192.
168.3.2 0.0.0.0 de
[r6-acl-adv-3000]rule deny tcp source 172.168.65.1 0.0.0.0 destination 192.168.3
.2 0.0.0.0 destination-port eq 23
rface g0/0/1.2
[r4-GigabitEthernet0/0/1.2]ip ad
[r4-GigabitEthernet0/0/1.2]ip address 192.168.4.1 24
[r4-GigabitEthernet0/0/1.2]dot1q termination vid 30
Nov 28 2022 17:47:55-08:00 r4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1.2 has entered the UP state.
[r4-GigabitEthernet0/0/1.2]quit
[r4]ip pool 1
[r4-ip-pool-1]network 192.168.3.0 mask 24
[r4-ip-pool-1]gat
[r4-ip-pool-1]gateway-list 192.168.3.1
[r4-ip-pool-1]dn
[r4-ip-pool-1]dns-list 8.8.8.8
[r4-ip-pool-1]quit
[r4]interface g0/0/1.1
[r4-GigabitEthernet0/0/1.1]dhcp select global
[r4]ip pool 2
Info: It's successful to create an IP address pool.
[r4-ip-pool-2]network 192.168.4.0 mask 24
[r4-ip-pool-2]gat
[r4-ip-pool-2]gateway-list 192.168.4.1
[r4-ip-pool-2]dns-list 8.8.8.8
[r4-ip-pool-2]quit
[r4]interface g0/0/1.2
[r4-GigabitEthernet0/0/1.2]dhcp select global
[r4-GigabitEthernet0/0/1.2]qu
[r4-GigabitEthernet0/0/1.2]quit
r1为DR,没有BDR
加快收敛速度
[r6-GigabitEthernet0/0/1]ospf timer hello 5
[r6-GigabitEthernet0/0/1]ospf timer dead 20
运营商只配IP地址
登录
[r4]aaa
[r4-aaa]local-user 1 privilege level 15 password cipher 123
Info: Add a new user.
[r4-aaa]local-user 1 service-type telnet
[r4-aaa]qu
[r4-aaa]quit
[r4]user-interface vty 0 4
[r4-ui-vty0-4]authentication-mode aaa
消除pc5过去的流量,ping不通pc3
[r4]acl 3000
[r4-acl-adv-3000]rule deny icmp source 192.168.3.2 0.0.0.0 destination 192.168.2
.2 0.0.0.0 icmp-type echo-reply
不能能登陆r6
[r6]acl 3000
[r6-acl-adv-3000]rule deny tcp source 172.168.65.1 0.0.0.0 destination 192.168.3
.2 0.0.0.0 destination-port eq 23