java如何实现模拟USB接口的功能
313
2022-09-28
21-DHCP Relay技术 //IOU模拟
Server(config)#ip dhcp pool vlan10Server(dhcp-config)#network 192.168.10.0 255.255.255.0Server(dhcp-config)#default-router 192.168.10.254Server(dhcp-config)#dns-server 8.8.8.8Server(dhcp-config)#lease 15
Server(config)#ip dhcp pool vlan20Server(dhcp-config)#network 192.168.20.0 255.255.255.0Server(dhcp-config)#default-router 192.168.20.254Server(dhcp-config)#dns-server 8.8.8.8Server(dhcp-config)#lease 30
Server(config)#ip dhcp excluded-address 192.168.10.254Server(config)#ip dhcp excluded-address 192.168.20.254
Server(config)#ip routingServer(config)#router ospf 100Server(config-router)#network 172.168.24.0 0.0.0.255 area 0
SW1(config)#int f1/0SW1(config-if)#no shutdown SW1(config-if)#no switchport SW1(config-if)#ip address 172.168.24.2 255.255.255.0
SW1(config)#int f1/1SW1(config-if)#no shutdown SW1(config-if)#switchport trunk encapsulation dot1q SW1(config-if)#switchport mode trunk
SW1(config)#int vlan 10SW1(config-if)#no shutdown SW1(config-if)#ip address 192.168.10.254 255.255.255.0SW1(config)#int vlan 20SW1(config-if)#no shutdown SW1(config-if)#ip address 192.168.20.254 255.255.255.0
SW1(config)#ip routingSW1(config)#router ospf 100SW1(config-router)#network 172.168.24.0 0.0.0.255 area 0SW1(config-router)#network 192.168.10.0 0.0.0.255 area 0SW1(config-router)#network 192.168.20.0 0.0.0.255 area 0
SW2(config)#int f1/0SW2(config-if)#no shutdown SW2(config-if)#switchport trunk encapsulation dot1q SW2(config-if)#switchport mode trunk
SW2(config)#int f1/1SW2(config-if)#no shutdown SW2(config-if)#switchport mode access SW2(config-if)#switchport access vlan 10
SW2(config)#int f1/2SW2(config-if)#no shutdown SW2(config-if)#switchport mode access SW2(config-if)#switchport access vlan 20
SW2(vlan)#vlan 10VLAN 10 added:Name: VLAN0010SW2(vlan)#vlan 20VLAN 20 added:Name: VLAN0020
SW2(config)#no ip routing
PC1(config)#int f0/0PC1(config-if)#no shutdown PC1(config-if)#ip address dhcpPC1(config)#no ip routingPC1(config)#ip default-gateway 192.168.10.254
PC2(config)#int f0/0PC2(config-if)#no shutdown PC2(config-if)#ip address dhcpPC2(config)#no ip routingPC2(config)#ip default-gateway 192.168.20.254
2、重点命令: SW1(config)#int vlan 10SW1(config-if)#ip helper-address 172.168.24.1
SW1(config)#int vlan 20SW1(config-if)#ip helper-address 172.168.24.1
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~