全部博文(30)
2011年(30)
分类:
2011-04-25 22:44:17
hostname sw1
!
ip dhcp excluded-address 192.168.1.1 192.168.1.50
ip dhcp excluded-address 192.168.2.1 192.168.2.50
ip dhcp excluded-address 192.168.3.1 192.168.3.50///设置排除地址,1-50为预留地址
!
ip dhcp pool vlan2///配置地址池///vlan2为地址池名
network 192.168.1.0 255.255.255.0///设置地址池范围
default-router 192.168.1.1///设置默认网关
dns-server 192.168.1.1///设置dns地址
ip dhcp pool vlan3
network 192.168.2.0 255.255.255.0
default-router 192.168.2.1
dns-server 192.168.2.1
ip dhcp pool vlan4
network 192.168.3.0 255.255.255.0
default-router 192.168.3.1
dns-server 192.168.3.1
ip routing///开启路由功能
!