三层交换机跨 Vlan ip forward-protocol udp bootps

交换机A上连接的服务器WIN2003,启用了DHCP
客户机通过另一台交换机B(同品牌)与交换机A连接 
开机进入XP后可以自动获取IP地址 
但是,如果开机后通过PXE启动时,却无法连接到DHCP,获取不到IP地址
进一步发现,客户机直接同A连接就没有问题,看来是因为经过交换机B后,就无法找到 DHCP服务器,无法获取 IP地址。因此分析,原因是交换机阻隔了客户机寻找DHCP的广播报文,因此可能需要在交换机上设置。
具体做法:
1、全局模式下
service dhcp
ip forward-protocol udp bootps
2、在需要自动获取IP的Vlan端口内指定 UDP 广播数据报的目的地址
如:ip helper-address 192.168.10.254
最后如下:
...........
!
service dhcp
!
ip forward-protocol udp bootps
!
..........
!
interface Vlan3
ip address 192.168.17.254 255.255.255.0
!forward protocol udp 67(active)!
ip helper-address 192.168.10.254
!
..........
interface Vlan30
ip address 192.168.30.254 255.255.255.0
!forward protocol udp 67(active)!
ip helper-address 192.168.1.8
说明:dhcp来源于bootp(主机引导协议),它是主机在boot时靠udp广播来获取ip地址。使用ip forward-protocol udp bootps(bootpc)是因为dhcp的服务和客户分别用udp的67与68地址来分配和获取IP地址的。其实上述命令等同于ip forward-pro udp 67(68)。
路由器缺省是隔离广播的,ip directed-broadcast命令使路由器上的此接口允许转发广播报文。
  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
这些命令用于禁用或停止一些服务,具体解释如: ``` chkconfig rpcbind off chkconfig printer off chkconfig tftp off chkconfig lpd off chkconfig nfs off chkconfig nfslock off chkconfig ypbind off chkconfig daytime off chkconfig daytime-udp off chkconfig sendmail off chkconfig ntalk off chkconfig ident off chkconfig bootps off chkconfig kshell off chkconfig klogin off chkconfig snmpd off chkconfig time off chkconfig time-udp off chkconfig echo off chkconfig echo-udp off chkconfig discard off chkconfig discard-udp off chkconfig chargen off chkconfig chargen-udp off ``` 使用`chkconfig`命令将rpcbind、printer、tftp、lpd、nfs、nfslock、ypbind、daytime、daytime-udp、sendmail、ntalk、ident、bootps、kshell、klogin、snmpd、time、time-udp、echo、echo-udp、discard、discard-udp、chargen和chargen-udp服务的自动启动设置为关闭。 ``` systemctl disable rpcbind systemctl disable printer systemctl disable tftp systemctl disable lpd systemctl disable nfs systemctl disable nfslock systemctl disable ypbind systemctl disable daytime systemctl disable daytime-udp systemctl disable sendmail systemctl disable ntalk systemctl disable ident systemctl disable bootps systemctl disable kshell systemctl disable klogin systemctl disable snmpd systemctl disable time systemctl disable time-udp systemctl disable echo systemctl disable echo-udp systemctl disable discard systemctl disable discard-udp systemctl disable chargen systemctl disable chargen-udp ``` 使用`systemctl`命令将rpcbind、printer、tftp、lpd、nfs、nfslock、ypbind、daytime、daytime-udp、sendmail、ntalk、ident、bootps、kshell、klogin、snmpd、time、time-udp、echo、echo-udp、discard、discard-udp、chargen和chargen-udp服务的自动启动设置为禁用。 ``` service rpcbind stop service snmpd stop systemctl stop telnet.socket systemctl stop rlogin systemctl stop rpcbind ``` 使用`service`和`systemctl`命令停止rpcbind、snmpd、telnet.socket和rlogin服务。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值