当前位置:网站首页>HCIP_ Static experiment

HCIP_ Static experiment

2022-06-13 08:16:00 BT youth

( notes :4 platform PC of no avail DHCP To allocate )
be based on 192.168.0.0/24 To allocate  
192.168.00000000.00 000000
A total of 3 Large section ( borrow 2 position )
192.168.0.64/26        —— Loopback : Switch back in three ( borrow 2 position )
    |-192.168.0.01 00 0000
    192.168.0.64/28
    192.168.0.80/28
    192.168.0.96/28
192.168.0.128/26    —— The trunk : There are six paragraphs ( borrow 3 position )
    |-192.168.0.10 000 000
    192.168.0.136/29
    192.168.0.144/29
    192.168.0.160/29
    192.168.0.184/29
    192.168.0.152/29
    192.168.0.192/29
192.168.0.192/26    ——VLAN: Two ( borrow 1 position )
    |192.168.0.11 0 00000
    192.168.0.192/27
    192.168.0.224/27

Assign addresses to routers :
    R3:
Interface configuration address :
[r3]interface GigabitEthernet 0/0/0
[r3-GigabitEthernet0/0/0]ip address 192.168.0.137 29
[r3]interface GigabitEthernet 0/0/1
[r3-GigabitEthernet0/0/1]ip address 192.168.0.161 29
Loopback address :
[r3]interface LoopBack 1
[r3-LoopBack1]ip address 192.168.0.65 28
[r3]interface LoopBack 2
[r3-LoopBack2]ip address 192.168.0.81 28
[r3]interface LoopBack 3 
[r3-LoopBack3]ip address 192.168.0.97 28

Static allocation IP:
[r3]ip route-static 192.168.0.144 29 192.168.0.138—— Backbone segment 1
[r3]ip route-static 192.168.0.184 29 192.168.0.162—— Backbone segment 2
[r3]ip route-static 192.168.0.192 26 192.168.0.162——VLAN Network segment
[r3]ip route-static 192.168.0.152 29 192.168.0.138—— Backbone segment 3( Load balancing , Because the distance is equal )
[r3]ip route-static 192.168.0.152 29 192.168.0.162—— Backbone segment 3
[r3]ip route-static 192.168.0.168 29 192.168.0.138—— Backbone segment 4( Load balancing , Because the distance is equal )
[r3]ip route-static 192.168.0.168 29 192.168.0.162—— Backbone segment 4
[r3]ip route-static 0.0.0.0 0 192.168.0.138      —— Default route ( Load balancing , Because the distance is equal )
[r3]ip route-static 0.0.0.0 0 192.168.0.162      —— Default route ( Load balancing , Because the distance is equal )
[r3]ip route-static 192.168.0.64 26 NULL 0      ——R3 Loop back the hollow interface anti ring
[r5]ip route-static 192.168.0.192 26 NULL 0      ——R5 to VLAN Air filling interface anti ring


[r5]interface GigabitEthernet 0/0/1.1
[r5-GigabitEthernet0/0/1.1]arp broadcast enable            —— Turn on ARP radio broadcast
[r5-GigabitEthernet0/0/1.1]dot1q termination vid 2        VLAN2 pack dot1q
[r5-GigabitEthernet0/0/1.1]ip address 192.168.0.195 27

[r5]interface GigabitEthernet 0/0/1.2
[r5-GigabitEthernet0/0/1.1]arp broadcast enable            —— Turn on ARP radio broadcast
[r5-GigabitEthernet0/0/1.2]dot1q termination vid 3        VLAN3 pack dot1q
[r5-GigabitEthernet0/0/1.2]ip address 192.168.0.227 27

[sw1]interface Eth0/0/1
[sw1-Ethernet0/0/1]port link-type trunk 
[sw1-Ethernet0/0/1]port trunk allow-pass vlan 2 3

[sw1]interface Eth0/0/4
[sw1-Ethernet0/0/4]port link-type trunk 
[sw1-Ethernet0/0/4]port trunk allow-pass vlan 2 3

[sw1]interface Eth0/0/3
[sw1-Ethernet0/0/3]port link-type access 
[sw1-Ethernet0/0/3]port default vlan 3

[sw1]interface Eth0/0/2
[sw1-Ethernet0/0/2]port link-type access 
[sw1-Ethernet0/0/2]port default vlan 2

Empathy :SW2
[sw1]interface Eth0/0/5
[sw1-Ethernet0/0/5]port link-type trunk 
[sw1-Ethernet0/0/5]port trunk allow-pass vlan 2 3

[sw1]interface Eth0/0/2
[sw1-Ethernet0/0/2]port link-type access 
[sw1-Ethernet0/0/2]port default vlan 3

[sw1]interface Eth0/0/1
[sw1-Ethernet0/0/1]port link-type access 
[sw1-Ethernet0/0/1]port default vlan 2

PC1 Address :
IP:192.168.0.193/27
gateway :192.168.0.195
            VLAN2
PC3 Address :
IP:192.168.0.194/27
gateway :192.168.0.195
-----------------------------
PC2 Address :
IP:192.168.0.225/27
gateway :192.168.0.227
            VLAN3    
PC4 Address :
IP:192.168.0.226/27
gateway :192.168.0.227

Realization VLAN2 Communication between 、VLAN3 Communication between , however VLAN2 And VLAN3 Can't communicate .


ip pool bt1
net work 192.168.1.0 mask 24
gatway-list 192.168.1.1
dns-list 8.8.8.8
q
dhcp enable
interface g0/0/2.1
dhcp select global
q
ip pool bt2
net work 192.168.2.0 mask 24
gatway-list 192.168.2.1
dns-list 8.8.8.8
q
interface g0/0/2.2
dhcp select global

原网站

版权声明
本文为[BT youth]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202270544578837.html