DHCP replay

DHCP replay

[V200R003C00]
#
 sysname server
#
dhcp enable
#
ip pool vlan-2
 gateway-list 192.168.2.254 
 network 192.168.2.0 mask 255.255.255.0 
#
ip pool vlan-3
 gateway-list 192.168.3.254 
 network 192.168.3.0 mask 255.255.255.0 
#                                                                             
interface GigabitEthernet0/0/0            
 ip address 10.1.1.1 255.255.255.0        
 dhcp select global                                                 
#                                         
ip route-static 192.168.2.0 255.255.255.0 10.1.1.2
ip route-static 192.168.3.0 255.255.255.0 10.1.1.2



-----------------------------------------------------------------------------------

sysname replay
#
vlan batch 2 to 3 100
#
dhcp enable
#
dhcp server group vlan-2
 dhcp-server 10.1.1.1 0                      
#                                         
interface Vlanif2                         
 ip address 192.168.2.254 255.255.255.0   
 dhcp select relay                        
 dhcp relay server-select vlan-2          
#                                         
interface Vlanif3                         
 ip address 192.168.3.254 255.255.255.0   
 dhcp select relay             --代理           
 dhcp relay server-select vlan-2          
#                                         
interface Vlanif100                       
 ip address 10.1.2.1 255.255.255.0                                         
#                                         
interface Ethernet0/0/1                   
 port link-type trunk                     
 port trunk allow-pass vlan 2 to 3                      
#                                         
interface GigabitEthernet0/0/1            
 port link-type access                    
 port default vlan 100                                           
#                                         
ip route-static 10.1.1.0 255.255.255.0 10.1.2.2
----------------------------------------------------------------------------------------
#
sysname sw1
#
vlan batch 2 to 3
#
interface MEth0/0/1                       
#                                         
interface Ethernet0/0/1                   
 port link-type access                    
 port default vlan 2                      
#                                         
interface Ethernet0/0/2                   
 port link-type access                    
 port default vlan 3                      
#                                         
interface Ethernet0/0/3                   
 port link-type trunk                     
 port trunk allow-pass vlan 2 to 3        
#  
-----------------------------------------------------------------------------------------
#                                         
interface GigabitEthernet0/0/0            
 ip address 10.1.2.2 255.255.255.0        
#                                         
interface GigabitEthernet0/0/1            
 ip address 10.1.1.2 255.255.255.0                                
#                                         
ip route-static 192.168.2.0 255.255.255.0 10.1.2.1
ip route-static 192.168.3.0 255.255.255.0 10.1.2.1
# 

链接:https://pan.baidu.com/s/1WzPmKaBjAXV5sqczbtLQHQ
提取码:t5no

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值