cisco如何配置DHCP

发布网友 发布时间:2022-02-24 08:52

我来回答

6个回答

热心网友 时间:2022-02-24 10:21

1、随意选择路由器、交换机和多台主机。

2、用直线连接。


3、双击路由器,选择physical→cli,您将看到以下要配置的界面。

4、打开电脑,选择“桌面”—“IP配置”,然后选择DHCP。

5、最后,使用ping测试它,完成了。

热心网友 时间:2022-02-24 11:39

1、随意选择一台路由器、一台交换机和几台主机。

2、用直通线把他们连起来。

3、双击路由器,选择“Physical”→“CLI”,就会看到如下界面,就可以进行配置了。

4、打开PC,选择“Desktop”→“IP Configuration”,选择DHCP。

5、最后用ping测试一下,通了,大功告成。

热心网友 时间:2022-02-24 13:14

cisco配置DHCP方法

1、打开思科模拟器软件,找出一台2811类的路由器和两台2960类的交换机,4台PC电脑,并用正确的线缆将各个设备互相连接起来。

2、给所有设备都重新命名,路由器命名为r1,一交换机命名为sw1,另一交换机命名为sw2。

3、先配置路由器r1先,配置命令为:

r1(config)#int f0/0

r1(config-if)#no sh

再配置路由器设备的远程登录和密码保护,配置命令为:

r1(config)#lin vty 0 4

r1(config-line)#login local

r1(config-line)#username admin password cisco

r1(config-line)#exit

r1(config)#enable secret cisco

r1(config)#service password-encrption   (此命令为加密所有口令)

4、配置交换机sw1,配置命令是:

sw1(config)#int vlan 1

sw1(config-if)#ip add 192.168.1.2 255.255.255.0

sw1(config-if)#no sh

sw1(config-if)#ex

sw1(config)#ip default-gateway 192.168.1.1

再用相同方法配置sw2。

5、配置vlan设定,在sw1上划分vlan 2,3,将相应端口加入其中,配置命令为:

sw1#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

sw1(config)#vlan 2

sw1(config-vlan)#ex

sw1(config)#vlan 3

sw1(config-vlan)#ex

sw1(config)#int f0/4

sw1(config-if)#switchport mode access

sw1(config-if)#switchport access vlan 2

sw1(config-if)#int f0/5

sw1(config-if)#switchport mode access

sw1(config-if)#switchport access vlan 3

sw1(config-if)#ex

用相同方法在sw3上面划分vlan,并将相应的端口加入其中。

6、配置单臂路由,实现valn1,2,3之间的互访,配置sw1接口f0/1为主干链路,配置命令是:

sw1(config)#int f0/1

sw1(config-if)#switchport  mode  trunk

sw1(config-if)#no  sh

7、在路由器r1上进行封装,配置命令如下图所示:

r1#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

r1(config)#int f0/0

r1(config-if)#no shut

r1(config)#int f0/0.1

r1(config-subif)#encapsulation dot1Q 1

r1(config-subif)#ip add 192.168.1.1 255.255.255.0

r1(config-subif)#ex

r1(config)#int f0/0.2

r1(config-subif)#encapsulation dot1Q 2

r1(config-subif)#ip add 192.168.2.1 255.255.255.0

r1(config-subif)#ex

r1(config)#int f0/0.3

r1(config-subif)#encapsulation dot1Q 3

r1(config-subif)#ip add 192.168.3.1 255.255.255.0

r1(config-subif)#no sh

r1(config-subif)#ex


8、配置DHCP服务器,即是配置路由器r1,配置命令是:

r1#enable

r1#conf t

r1(config)#ip dhcp excluded-address 192.168.2.1

r1(config)#ip dhcp pool vlan2

r1(dhcp-config)#net 192.168.2.0 255.255.255.0

r1(dhcp-config)#default-router 192.168.2.1

r1(dhcp-config)#dns-server 100.1.1.2

r1(config)#ip dhcp excluded-address 192.168.3.1

r1(config)#ip dhcp pool vlan3

r1(dhcp-config)#net 192.168.3.0 255.255.255.0

r1(dhcp-config)#dns-server 100.1.1.2

r1(dhcp-config)#ex

9、cisco如何配置DHCP完成了,现在可以自动获取IP地址和网关了。

热心网友 时间:2022-02-24 15:05

在三层交换机上配。命令如下:switch#config t #ip dhcp excluded-address 192.168.1.254(保留1.254这个地址) #ip dhcp pool dhcp-pool(名称自己取) #network 192.168.1.0 255.255.255.0(分配的网络断) #dns-server 10.0.28.5(DNS服务器) #default-route 192.168.1.1(默认网关) #show ip dhcp binding (查看)

热心网友 时间:2022-02-24 17:13

r1)#ip dhcp excluded-address 192.168.1.1 #排除IP地址
#ip dhcp pool rsb #建立地址池名称为RSB
#network 192.168.1.0 255.255.255.0 #设置网段
#default-router 192.168.1.1 #默认网关
#dns-server 61.153.177.198 #NDS我告诉过你莫,,你居然不相信我过~~~

热心网友 时间:2022-02-24 19:38

进入视图界面,接口下,配置dhcp enable ,然后加上 dhcp的范围就可以了。
声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。
E-MAIL:11247931@qq.com