- 论坛徽章:
- 0
|
#三层接口
interface Vlan 100
ip address 172.16.0.2 255.255.255.0
dhcp select interface
dhcp server static-bind ip-address 172.16.0.3 mac-address 0000-6ca0-7245
dhcp server static-bind ip-address 172.23.0.4 mac-address 0000-5e39-43bf
dhcp server dns-list 200.200.200.1 200.200.200.2 (dns server)
dhcp server domain-name ciscolinux.cn
#物理接口
interface GigabitEthernet1/0/1
stp edged-port enable
port access vlan 100
arp static 172.16.0.3 0000-6ca0-7245 100
#
interface GigabitEthernet1/0/2
stp edged-port enable
port access vlan 100
arp static 172.16.0.4 0000-5e39-43bf 100
#禁止发布地址
dhcp server forbidden-ip 172.16.0.100 172.16.0.254
#绑定错误的mac地址
arp static 172.16.0.101 00fe-edef-0254
arp static 172.16.0.102 00fe-edef-0254
arp static 172.16.0.103 00fe-edef-0254
--------------------------------------
-------------------------------------
arp static 172.16.0.252 00fe-edef-0254
arp static 172.16.0.253 00fe-edef-0254
arp static 172.16.0.254 00fe-edef-0254
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/42728/showart_332105.html |
|