当前位置:网站首页>Practice is the fastest way to become a network engineer

Practice is the fastest way to become a network engineer

2022-06-26 09:02:00 The most iron headed net worker

static state IP Please configure the assigned host address by yourself

Refer to the order

The goal of the experiment :
1、 by AR1 Of G0/0/0 Interface configuration ip Address , The address is 192.168.1.1, Mask as 255.255.255.0
2、AR1 Turn on DHCP service , And in G0/0/0 Interface on DHCP function , Address pool select interface mode
3、 Two of them PC Configured to automatically get IP Address , And then through ping Command to test the connectivity between the two

AR1 :

dhcp enable

interface GigabitEthernet0/0/0

dhcp select interface

adopt ipconfig See if you can get IP Address

DNS

The goal of the experiment :
1、 Configure the... Of each device as shown in the figure IP Address
2、DNS The server is pre configured , Contains domain names www.baidu.com Of IP Information , The corresponding address is 192.168.1.200
3、 Add the required configuration , Realization PC1 You can use the domain name ping through PC2, also DHCP Server exclusion 192.168.1.100 and 192.168.1.200 Two special addresses

AR1:ip add 192.168.1.1 24

dhcp enable

interface GigabitEthernet0/0/0

dhcp select interface

dhcp server dns-list 192.168.1.100

dhcp server excluded-ip-address 192.168.1.100

dhcp server excluded-ip-address 192.168.1.200

Static routing

requirement :

1. Please configure the host and router interface as shown in the figure IP Address
2. Configure the correct static route , Realization PC The machine can ping through server

AR1:ip route-static 192.168.3.0 24 192.168.2.2

ip route-static 192.168.4.0 24 192.168.2.2

AR2

ip route-static 192.168.1.0 255.255.255.0 192.168.2.1

ip route-static 192.168.4.0 255.255.255.0 192.168.3.2

AR3

ip route-static 192.168.1.0 255.255.255.0 192.168.3.1

ip route-static 192.168.2.0 255.255.255.0 192.168.3.1

VLAN

  1. Pictured , Each node ip The address is pre configured , And can communicate with each other
    2、 adopt vlan To configure , Realization pc1 You can talk to pc2、pc5 signal communication pc1 Unable to join pc3、pc4 signal communication

Vlan 10

Vlan 20

interface GigabitEthernet0/0/1

port link-type access

port default vlan 10

interface GigabitEthernet0/0/2

port link-type access

port default vlan 10

interface GigabitEthernet0/0/3

port link-type access

port default vlan 20

interface GigabitEthernet0/0/4

port link-type trunk

port trunk allow-pass vlan 2 to 4094

LSW2

Vlan 10

Vlan 20

interface GigabitEthernet0/0/1

port link-type trunk

port trunk allow-pass vlan 2 to 4094

interface GigabitEthernet0/0/2

port link-type access

port default vlan 20

interface GigabitEthernet0/0/3

port link-type access

port default vlan 10

VLAN Inter connection

The experimental requirements

1、PC1 and PC2 The address of has been pre configured

2、 Complete the... Of the two switches as shown in the figure vlan To configure

3、 stay LSW1 Upper configuration PC Gateway address for , Realize two different vlan Of PC Can communicate with each other

LSW2:

Vlan 10

Vlan 20

interface GigabitEthernet0/0/1

port link-type access

port default vlan 10

interface GigabitEthernet0/0/2

port link-type access

port default vlan 20

interface GigabitEthernet0/0/3

port link-type trunk

port trunk allow-pass vlan 2 to 4094

LSW1:

Vlan 10

Vlan 20

interface Vlanif10

ip address 192.168.10.254 255.255.255.0

interface Vlanif20

ip address 192.168.20.254 255.255.255.0

interface GigabitEthernet0/0/1

port link-type trunk

port trunk allow-pass vlan 2 to 4094

原网站

版权声明
本文为[The most iron headed net worker]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/177/202206260840009181.html