Bridge
توسط
- 2010-12-06 - 04:38 PM (بازدید: 1951)
|
کد:## Intetfaces Bridge ## Fc. Redhat, CentOS yum install bridge-utils ## Debian, Ubuntu apt-get install bridge-utils # Disable Nic ifconfig eth0 0.0.0.0 up ifconfig eth1 0.0.0.0 up # Create Bridge Nic brctl addbr br0 brctl addif br0 eth0 brctl addif br0 eth1 # Add ip address bridge interface ifconfig br0 192.168.0.11 netmask 255.255.255.0 # Default Gateway route add default gw 192.168.0.1 # Enable stp on bridge brctl stp br0 on