
6、//指定DHCP客户的mac地址 hardware ethernet 12:34:56:78:AB:CD; //对指定的mac地址分配固定的IP地址 fixed-address 207.75.42.254; Q:如果我要再添加数个IP地址给相对应的mac地址是不是就可以一条一条的往下写啊?如下: hardware ethernet 11:37:56:48:BB:ED; fixed-address 207.75.42.188; hardware ethernet 12:84:56:88:AB:FD; fixed-address 207.75.42.199; hardware ethernet 22:34:56:78:FB:CD; fixed-address 207.75....
by txkss - - 2004-05-04 16:35:32 阅读(86) 回复(2)
以太头的结构体定义:unsigned char ether_dhost[6]; 我想把00:15:F2:8D:2E:9E 转成6字节的,费半天劲没想明白,。比如把9E转成10进制是158,可是怎么把它变成一个字节付给ether_dhost[5]阿。
///
rc.local文件内容如下 modprobe ip_conntrack modprobe ip_tables modprobe ip_nat_ftp modprobe ip_conntrack_ftp modprobe iptable_filter modprobe iptable_nat modprobe ip_nat_ftp iptables -F iptables -X iptables -Z iptables -F -t nat iptables -X -t nat iptables -Z -t nat iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT iptables -P FORWARD DROP iptables -t nat -P PREROUTING ACCEPT iptables -t nat ...
如果 我 的 计算机的 mac 地址是 AABBCCDDEEFF 那么 在 6位地址中的 存放 顺序是 AA BB CC DD EE FF 还是 FF EE DD CC BB AA 啊? 谁 有GetmacAddr 函数的 源码 吗, 小弟在网上 没得找到啊 先 谢谢了啊!
描述: 一台S3526的交换机,划分2个vlan,1-23端口是vlan101;24号端口是vlan102;其中vlan102是用于对接子网用的,就是说vlan101 的端口通过vlan102出去。 现在需要只是允许指定的几台机器可以通过交换机出去,访问外网;但是没有指定的那些机器则不能通过,只是可以和这台交换机上的其他机器相互访问,请问怎么做???