SW1(dhcp-config)#lease 2 SW1(dhcp-config)#exit SW1(config)#ip dhcp pool vlan20 SW1(dhcp-config)#network 192.168.2.0 255.255.255.0 SW1(dhcp-config)#default-router 192.168.2.1 SW1(dhcp-config)#dns-server 202.106.0.20 SW1(dhcp-config)#lease 2 SW1(dhcp-config)#exit SW1(config)#ip d...
ip dhcp pool vlan101 // 这里的vlan101就是个名字,你写啥都行,只要不冲突。network 192.168.1.0 255.255.255.0 //这个才是关键,对应你的interface vlan101地址 default-router 192.168.1.1 ip helper-add是中继时才用到。比如你的DHCP SVR不是3750,而是VLAN102下的一台服务器,要给...
第一步交换机开启全局dhcp, 第二步配上vlanif ip 第三步开启接口模式(默认将vlanif作网关) # dhcp enable # interface Vlanif100 ip address 192.168.1.254 255.255.255.0 dhcp select interface # Snooping配置 DHCP请求不需要验证,所以产生诸多安全性的问题,比如网络中私接路由导致dhcp冲突,dhcp仿冒攻击,dos攻击...
答案:该dhcp的地址池,仅仅对于vlan 10的端口进行分配。其他的不分配。希望对你有帮助,麻烦给个采纳、点个赞,谢谢!!
开启接口采用全局地址池的DHCPv4服务器功能 [DeviceA] interface vlanif 10 [DeviceA-VLANIF10] dhcp select global [DeviceA-VLANIF10] quit [DeviceA] interface vlanif 11 [DeviceA-VLANIF11] dhcp select global [DeviceA-VLANIF11] quit 检查配置结果 #在DeviceA上执行命令display ip pool来查看地址池...
VLAN 10配置DHCP: [AR1]interfaceGigabitEthernet0/0/0.10#创建子接口 [AR1-GigabitEthernet0/0/0.10]ip address10.10.10.124#配置IP地址 [AR1-GigabitEthernet0/0/0.10]dot1q termination vid10#绑定vlan10 [AR1-GigabitEthernet0/0/0.10]arp broadcast enable #开启arp广播 ...
Switch(config)#ip dhcp pool vlan10 地址名 Switch(dhcp-config)#default-router 192.168.10.254 地址网关 此处为vlan10网段的网关此处为关键 Switch(dhcp-config)#dns 192.168.1.1 DNS地址 Switch(dhcp-config)#ip dhcp pool vlan20 Switch(dhcp-config)#ip dhcp pool vlan30 Switch(dhcp-config)#dns 192.168....
ip dhcp pool vlan1 network10.1.1.0 255.255.255.0 //本pool是global的子pool,将从global pool继承domain-name等 option default-router10.1.1.100 10.1.1.101 //为客户机配置默认网关 ! ip dhcp pool vlan2 //为另一VLAN配置的pool network10.1.2.0 255.255.255.0 default-router10.1.2.100 10.1.2.101 lease 1...
#ip dhcp pool vlan10 地址名Switch(dhcp-config)#default-router 192.168.10.254 地址网关 此处为vlan10网段的网关此处为关键Switch(dhcp-config)#dns 192.168.1.1 DNS地址Switch(dhcp-config)#ip dhcp pool vlan20Switch(dhcp-config)#ip dhcp pool vlan30Switch(dhcp-config)#dns 192.168.1.1 Switch(dhcp-...
DHCP给不同vlan分配IP 网络拓扑图如下: 接入层交换机划分vlan、与核心交换机相连的接口打trunk SW3: <Huawei>system-view [Huawei]undo info-center enable [Huawei]sysname SW3 [SW3]vlan10[SW3-vlan10]quit [SW3]port-group group-member Ethernet0/0/2to Ethernet0/0/3#端口组操作...