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...
Router(dhcp-config)#dns 202.2.2.1 Router(dhcp-config)#default-router 192.168.2.1 Router(dhcp-config)#exit Router(config)#ip dhcp excluded-address 192.168.1.1 Router(config)#ip dhcp excluded-address 192.168.2.1 Router(config)#access-list 1 permit 192.168.2.0 0.0.0.255 Router(config)#exit Router(...
router(config-subif)#ip address 192.168.1.1 255.255.255.0 router(config)#int f0/0.2 router(config-subif)#encapsulation dot1Q 3 router(config-subif)#ip address 192.168.2.1 255.255.255.0 router(config)#ip dhcp pool vlan2 router(dhcp-config)#network 192.168.1.0 255.255.255.0 router(dhcp-config)#...
//1.进入全局配置视图 router#config t //2.开启DHCP服务 router(config)#service DHCP //可选:关闭DHCP冲突日志 router(config)#no ip dhcp conflict logging //3.配置DHCP地址池名称(本例为:myPool) router(config)#ip dhcp pool myPool //4.配置DHCP地址(本例为:192.168.1.0/24) router(dhcp-config)...
在一个DHCP服务器上添加两个DHCP地址池,为两个网段的计算机动态配置IP地址。 2、配置两个路由器 路由器B: RouterB> RouterB>en RouterB#conf t Enter configuration commands, one per line. End with CNTL/Z. RouterB(config)#int fa0/1 RouterB(config-if)#ip address 192.168.9.1 255.255.255.0 ...
Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#host ISP ISP(config)#no ip domain-lookup ISP(config)#line con 0 ISP(config-line)#logg syn ISP(config-line)#exec-timeout 0 0 ISP(config-line)#exit ...
Cisco Packet Tracert 之 三层交换机DHCP服务 实验环境: 实验目的: 1、在三层交换机划分VLAN100\VLAN200,并且把FA0/1 和FA0/2分别划分到VLAN100 \VLAN200上。 2、在三层交换机上创建各VLAN的IP地址池,并创建网关的相应信息。 3、在客户端查看是否获取了相应的IP的信息。
CoreSWB(dhcp-config)#default-router 192.168.40.1 CoreSWB(dhcp-config)#exit 4、在B公司的二层交换机,设置VTP CLIENT。(只显示一个交换机的操作步骤) Switch#vlan database % Warning: It is recommended to configure VLAN from config mode, as VLAN database mode is being deprecated. Please consult use...
Current configuration : 1253 bytes ! version 12.1 …… ! hostname RA ! logging rate-limit console 10 except errors ! ip subnet-zero no ip finger ip domain-name svr80 ip host R2 10.0.0.1 1.1.1.2 no ip dhcp conflict logging ip dhcp excluded-address 192.168.1.1 192.168.1.5 ---全局配置...
图三DHCP地址池 在一个DHCP服务器上添加两个DHCP地址池,为两个网段的计算机动态配置IP地址。 2、配置两个路由器 路由器B: RouterB> RouterB>en RouterB#conf t Enter configuration commands, one per line. End with CNTL/Z. RouterB(config)#int fa0/1 ...