当前位置:网站首页>Manually configure DHCP service

Manually configure DHCP service

2022-07-23 12:54:00 Y firm materialist

Catalog

One 、 install DHCP service  ​ edit

Two 、 Change the network card configuration

  Configure network card information

3、 To configure ensp 

 SW2 To configure

SW1 To configure  


One 、 install DHCP service  

Get into  

Get into dhcp Configuration in the configuration file
vim /etc/dhcp/dhcpd.conf

  There are empty files , But there will be a line of comments , It means in the /usr/share/doc/dhcp*/dhcpd.conf.example There is a template under , You can use this template to write configuration

  See whether to copy

Two 、 Change the network card configuration

 

  Configure network card information

3、 To configure ensp 

 

 SW2 To configure

[sw2]int e0/0/1
[sw2-Etherneto/o/1]p l t
[Sw2-Ethernet0/0/1]p t a v a
[sw2-Ethernet0/0/1]int e0/0/2
[Sw2-Etherneto/o/2]p l a
[sw2-Etherneto/0/2]p d v 10
[sw2-Ethernet0/0/2]int e0/0/3
[Sw2-Ethernet0/0/3]p l t
[sw2-Ethernet0/0/3]p d v 20
[sw2-Ethernet0/0/3]int e0/0/4
[sw2-Ethernet0/0/4]p l a
[Sw2-Ethernet0/0/4]p d v 100
[sw2-Ethernet0/0/4]int e0/0/5
[sw2-Ethernet0/0/5]p l a
[sw2-Ethernet0/0/5]p d v 100

SW1 To configure  

[sw1]vlan ba 10 20 100
[sw1]int vlanif 10
[sw1-vlanif10]ip add 192.168.l0.2 24
[sw1-vianif10] int vlanif 20
[Sw1-vlanif20]ip add 192.168.20.2 24 
[sw1-vianif20]int vianif 100
[sw1-vianif100]ip add 192.168.25.2 24
[Sw1-vianif100]q
[Sw1]int g0/0/1
[swl-GigabitEthernet0/0/1]p l t
[Sw1-GigabitEthernet0/0/1]p t a v a
[Sw1-GigabitEthernet0/0/1]q

原网站

版权声明
本文为[Y firm materialist]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/204/202207230540311153.html