[收集互助]若何在三层交换机上实现跨VLAN 的DHCP设置装备摆设(原创)

4个月前 (11-27 23:25)阅读3回复0
dyyh
dyyh
  • 管理员
  • 注册排名7
  • 经验值144210
  • 级别管理员
  • 主题28842
  • 回复0
楼主

  若何在三层交换机上实现跨VLAN 的DHCP设置装备摆设

  3550交换机上的设置装备摆设:

  vlan database(划分VLAN)

  vlan 2

  vlan 3

  interface FastEthernet0/2(将端口f0/2划分进vlan2)

  switchport access vlan 2

  switchport mode access

  no ip address

  interface FastEthernet0/3(将端口f0/3划分进vlan3)

  switchport access vlan 3

  switchport mode access

  no ip address

  interface Vlan1

  ip address 192.168.1.2 255.255.255.0

  ip helper-address 192.168.1.1 (将DHCP恳求的播送数据包转化为单播恳求,路由器才会响应)

  interface Vlan2

  ip address 192.168.2.1 255.255.255.0

  ip helper-address 192.168.1.1

  interface Vlan3

  ip address 192.168.3.1 255.255.255.0

  ip helper-address 192.168.1.1

  路由器2621上的设置装备摆设:

  ip dhcp pool tyl-01(设置装备摆设第一个VLAN的地址池)

  network 192.168.1.0 255.255.255.0

  default-router 192.168.1.1 (设置装备摆设PC网关)

  dns-server 202.96.134.133(设置装备摆设DNS办事器)

  ip dhcp pool tyl-02(设置装备摆设第二个VLAN的地址池)

  network 192.168.2.0 255.255.255.0

  default-router 192.168.2.1

  dns-server 202.96.134.133

  ip dhcp pool tyl-03(设置装备摆设第三个VLAN的地址池)

  network 192.168.3.0 255.255.255.0

  default-router 192.168.3.1

  dns-server 202.96.134.133

  ip route 192.168.2.0 255.255.255.0 192.168.1.2(设置装备摆设静态路由)

  ip route 192.168.3.0 255.255.255.0 192.168.1.2

  ip dhcp excluded-address 192.168.1.1 192.168.1.2 (将路由器F0/0和3550 VLAN1的IP 地址肃清)

  ip dhcp excluded-address 192.168.2.1 (3550 VLAN1的IP 地址肃清)

  ip dhcp excluded-address 192.168.3.1 (3550 VLAN1的IP 地址肃清)

0
回帖

[收集互助]若何在三层交换机上实现跨VLAN 的DHCP设置装备摆设(原创) 期待您的回复!

取消