yingaoyun 大佬有话说 : 2020-1-7 11:17:12
求教cenos的网卡ip配置问题
请问,cenos一个网卡中只能配置一个网关吗 比如我有两个网段的ip192.168.100.50/31 192.168.200.60/29网卡要怎么配置?
mobisww 大佬有话说 : 2020-1-7 11:19:50
平僧洗头用飘柔 大佬有话说 : 2020-1-7 11:27:42
这个我有经验。。楼主请参考 https://www.zhujishuo.com/31.html
xfspace 大佬有话说 : 2020-1-7 11:35:45
多进多出
ip route flush table one
ip route add default via 192.168.0.1 dev eth0 src 192.168.0.10 table tel
ip rule add from 192.168.0.10 table one
ip route flush table two
ip route add default via 10.10.30.1 dev eth1 src 10.10.30.2 table two
ip rule add from 10.10.30.2 table two
yingaoyun 大佬有话说 : 2020-1-7 23:19:10
多谢 诸位 重装了系统就好了 ip都能用了