第一步:数网段 一共有6个广播域
10.1.1.0 24 IP配置过程
[5]int
[5]interface g0/0/0
[5-GigabitEthernet0/0/0]ip add
[5-GigabitEthernet0/0/0]ip address 10.1.1.2 24
[6]int
[6]interface g 0/0/1
[6-GigabitEthernet0/0/1]ip add
[6-GigabitEthernet0/0/1]ip address 10.1.1.1 24
172.16.32.0 19IP配置
[5-GigabitEthernet0/0/1]ip add
[5-GigabitEthernet0/0/1]ip address 172.16.0 19
[1]int
[1]interface g0/0/0
[1-GigabitEthernet0/0/0]ip add
[1-GigabitEthernet0/0/0]ip address 172.16.32.2 19
172.16.64.0 19
[1]interface g0/0/1
[1-GigabitEthernet0/0/1]ip add
[1-GigabitEthernet0/0/1]ip address 172.16.64.1 19
[sw1]vla
[sw1]vlan 1
[sw1-vlan1]qu
[sw1-vlan1]quit
[sw1]int
[sw1]interface e0/0/1
[sw1-Ethernet0/0/1]po
[sw1-Ethernet0/0/1]port li
[sw1-Ethernet0/0/1]port link-
[sw1-Ethernet0/0/1]port link-flap
[sw1-Ethernet0/0/1]port link-type tr
[sw1-Ethernet0/0/1]port link-type trunk
[sw1-Ethernet0/0/1]po
[sw1-Ethernet0/0/1]port
Nov 26 2022 20:49:47-08:00 sw1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 5, the c
hange loop count is 0, and the maximum number of records is 4095.tr
^
Error: Unrecognized command found at '^' position.
[sw1-Ethernet0/0/1]port tr
[sw1-Ethernet0/0/1]port trunk all
[sw1-Ethernet0/0/1]port trunk allow-pass vla
[sw1-Ethernet0/0/1]port trunk allow-pass vlan all
[sw1-Ethernet0/0/1]
Nov 26 2022 20:50:37-08:00 sw1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 6, the c
hange loop count is 0, and the maximum number of records is 4095.
[sw1-Ethernet0/0/1]in
[sw1-Ethernet0/0/1]qu
[sw1-Ethernet0/0/1]quit
[sw1]int
[sw1]interface vla
[sw1]interface Vlanif
^
Error:Incomplete command found at '^' position.
[sw1]int
[sw1]interface vla
[sw1]interface Vlanif 1
[sw1-Vlanif1]ip add
[sw1-Vlanif1]ip address 172.16.64.2 19
[2]interface g0/0/0
[2-GigabitEthernet0/0/0]ip ad
[2-GigabitEthernet0/0/0]ip address 172.16.64.4 19
[3]interface g0/0/0
[3-GigabitEthernet0/0/0]ip add
[3-GigabitEthernet0/0/0]ip address 172.16.64.6 19
[3-GigabitEthernet0/0/0]
172.16.96.1 19
[2]int
[2]interface g0/0/1
[2-GigabitEthernet0/0/1]ip add
[2-GigabitEthernet0/0/1]ip address 172.16.96.1 19
[7]interface g0/0/0
[7-GigabitEthernet0/0/0]ip add
[7-GigabitEthernet0/0/0]ip address 172.16.96.2 19
172.16.128.0 19
[4]interface g0/0/0
[4-GigabitEthernet0/0/0]ip add
[4-GigabitEthernet0/0/0]ip address 172.16.128.2 19
[3]int
[3]interface g0/0/1
[3-GigabitEthernet0/0/1]ip add
[3-GigabitEthernet0/0/1]ip address 172.16.128.1 19
172.16.160.0 19
itEthernet0/0/1]ip add
[3-GigabitEthernet0/0/1]ip address 172.16.128.1 19
[3]int
[3]interface g0/0/0
[3-GigabitEthernet0/0/0]ip add
[3-GigabitEthernet0/0/0]ip address 172.16.64.6 19
[3-GigabitEthernet0/0/0]
Nov 26 2022 21:00:50-08:00 3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP o
n the interface GigabitEthernet0/0/0 has entered the UP state.
[3-GigabitEthernet0/0/0]
Nov 26 2022 21:05:20-08:00 3 %%01IFPDT/4/IF_STATE(l)[2]:Interface GigabitEtherne
t0/0/1 has turned into UP state.
[3-GigabitEthernet0/0/0]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<3>sy
<3>system-view
Enter system view, return user view with Ctrl+Z.
[3]int
[3]interface g0/0/1
[3-GigabitEthernet0/0/1]ip add
[3-GigabitEthernet0/0/1]ip address 172.16.128.1 19
Nov 26 2022 21:10:04-08:00 3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP o
n the interface GigabitEthernet0/0/1 has entered the UP state.
[3-GigabitEthernet0/0/1]
Nov 26 2022 21:10:42-08:00 3 %%01IFPDT/4/IF_STATE(l)[1]:Interface GigabitEtherne
t0/0/0 has turned into DOWN state.
[3-GigabitEthernet0/0/1]
Nov 26 2022 21:10:42-08:00 3 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP o
n the interface GigabitEthernet0/0/0 has entered the DOWN state.
[3-GigabitEthernet0/0/1]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
下放IP地址
pc1
[3]dh
[3]dhcp en
[3]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[3]ip po
[3]ip policy-based-route
[3]ip pool x
Info: It's successful to create an IP address pool.
[3-ip-pool-x]netw
[3-ip-pool-x]network 192.168.1.0 mask 255.255.255.0
[3-ip-pool-x]netw
[3-ip-pool-x]network 192.168.1.0 mask 255.255.255.0
[3-ip-pool-x]ga
[3-ip-pool-x]gateway-list 192.168.1.1
[3-ip-pool-x]dn
[3-ip-pool-x]dns-list 8.8.8.8 114.114.114.114
[3-ip-pool-x]sta
[3-ip-pool-x]static-bind ip
[3-ip-pool-x]static-bind ip-address 192.168.1.2 ma
[3-ip-pool-x]static-bind ip-address 192.168.1.2 mac-address 5489 9820 5552
pc2
[3]dh
[3]dhcp en
[3]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[3]ip po
[3]ip policy-based-route
[3]ip pool x
Info: It's successful to create an IP address pool.
[3-ip-pool-x]netw
[3-ip-pool-x]network 192.168.2.0 mask 255.255.255.0
[3-ip-pool-x]netw
[3-ip-pool-x]network 192.168.2.0 mask 255.255.255.0
[3-ip-pool-x]ga
[3-ip-pool-x]gateway-list 192.168.2.1
[3-ip-pool-x]dn
[3-ip-pool-x]dns-list 8.8.8.8 114.114.114.114
[3-ip-pool-x]sta
[3-ip-pool-x]static-bind ip
[3-ip-pool-x]static-bind ip-address 192.168.2.2 ma
[3-ip-pool-x]static-bind ip-address 192.168.2.2 mac-address 5489 98B2 1685
pc3
[4]dhcp enable
[4]ip pool x
[4-ip-pool-x]network 192.168.3.0 mask 255.255.255.0
[4-ip-pool-x]network 192.168.3.0 mask 255.255.255.0
[4-ip-pool-x]gateway-list 192.168.3.1
[4-ip-pool-x]dns-list 8.8.8.8 114.114.114.114
[4-ip-pool-x]static-bind ip-address 192.168.3.2 mac-address 5489 9803 6380
pc4
[4]dhcp enable
[4]ip pool x
[4-ip-pool-x]network 192.168.4.0 mask 255.255.255.0
[4-ip-pool-x]network 192.168.4.0 mask 255.255.255.0
[4-ip-pool-x]gateway-list 192.168.4.1
[4-ip-pool-x]dns-list 8.8.8.8 114.114.114.114
[4-ip-pool-x]static-bind ip-address 192.168.4.2 mac-address 5489 9892 3AAE
加快收敛速度
[1]interface g0/0/0
[1-GigabitEthernet0/0/0]ospf timer hello 5
[1-GigabitEthernet0/0/0]ospf timer dead 20