我需要把MAC地址改为:28:D2:44:4F:F4:34,下面是步骤:
进入终端,先sudo -s
然后输入ifconfig en5 lladdr 28:D2:44:4F:F4:34 //en5是有线网卡的编号 28:D2:44:4F:F4:34是需要改成的MAC
再配置路由:
os x:
route -n add -net 10.0.0.0 -netmask 255.0.0.0 10.87.23.129
route -n add -net 10.87.30.0 -netmask 255.255.255.0 10.87.23.129
route -n add -net 10.97.85.0 -netmask 255.255.255.0 10.87.23.129
子网掩码:255.0.0.0
格式:route add net net-address subnet-mask router hops
例如: route add net 10.0.0.0 255.0.0.0 10.62.204.254,还没试验过,网上搜到的命令格式
route -n add -net 10.87.30.41 -netmask 255.255.255.0 10.87.23.129
windows :
route -f
route add -p 10.0.0.0 mask 255.0.0.0 10.87.23.129
route add -p 10.87.30.0 mask 255.255.255.0 10.87.23.129
route add -p 10.97.85.0 mask 255.255.255.0 10.87.23.129
网友评论