- ifconfig eth0 IP1 netmask 255.255.255.0 up
- ifconfig eth1 IP2 netmask 255.255.255.0 up
- ip route add default via GATEWAY
- ip route add default via GATEWAY dev eth0 src IP1 table 100
- ip route add default via GATEWAY dev eth1 src IP2 table 200
- ip rule add from IP1 table 100
- ip rule add from IP2 table 200
同一网段,双网卡配置
最新推荐文章于 2024-07-18 23:03:00 发布