您的位置:首页 > 其它

HP 路由交换之DHCP中继实验

2008-08-31 11:49 543 查看
一、DHCP中继实验



路由器上的配置(路由器作为DHCP服务器)
RR#show run
hostname "RR"
!
ip firewall
!
ip dhcp-server pool "20"
network 20.1.1.0 255.255.255.0
netbios-node-type h-node
default-router 20.1.1.1
!
ip dhcp-server pool "30"
network 30.1.1.0 255.255.255.0
netbios-node-type h-node
default-router 30.1.1.1
!
!
interface eth 0/2
ip address 192.168.1.1 255.255.255.0
no shutdown
!
ip route 20.1.1.0 255.255.255.0 192.168.1.2
ip route 30.1.1.0 255.255.255.0 192.168.1.2
三层交换机上的配置(DHCP中继)
hostname SW-3L
ip routing
snmp-server community "public" Unrestricted
vlan 1
name "DEFAULT_VLAN"
untagged 2,4-14,16-18,20-24
ip address dhcp-bootp
no untagged 1,3,15,19
exit
vlan 10
name "VLAN10"
untagged 1
ip address 192.168.1.2 255.255.255.0
exit
vlan 20
name "VLAN20"
untagged 19
ip address 20.1.1.1 255.255.255.0
ip helper-address 192.168.1.1
exit
vlan 30
name "VLAN30"
untagged 15
ip address 30.1.1.1 255.255.255.0
ip helper-address 192.168.1.1
exit 本文出自 “童话牧场” 博客,请务必保留此出处http://zwmy1021.blog.51cto.com/464702/96305
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: