Bridge mode shell script。
#!/bin/sh
BR=192.168.3.223
GW=192.168.1.1

ifconfig eth0 down
ifconfig eth1 down
ifconfig eth0 0.0.0.0 promisc
ifconfig eth1 0.0.0.0 promisc
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 eth1
ifconfig br0 $BR netmask 255.255.0.0 up
route add default gw $GW dev eth1

arrow
arrow
    全站熱搜

    flyfox 發表在 痞客邦 留言(0) 人氣()