Bridge Device 생성
]# vi /etc/sysconfig/network-script/ifcfg-br0
DEVICE=br0
ONBOOT=on
TYPE=Bridge
BOOTPROTO=static
IPADDR=192.168.1.2
NETMASK=255.255.255.0
USRCTL=no
ONBOOT=on
TYPE=Bridge
BOOTPROTO=static
IPADDR=192.168.1.2
NETMASK=255.255.255.0
USRCTL=no
물리 Device 설정
]# vi /etc/sysconfig/network-script/ifcfg-ethx
DEVICE=ethx
ONBOOT=yes
BOOTPROTO=none
BRIDGE=br0
USRCTL=no
ONBOOT=yes
BOOTPROTO=none
BRIDGE=br0
USRCTL=no
ip_forward 설정
]# vi /etc/sysctl.conf
net.ipv4.ip_froward = 1
ipforward 적용
]# sysctl -p
ipforward 적용 확인
]# cat /proc/sys/net/ip_forard
1
network 적용
]# service network restart
Bridge 적용 확인
]# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.0800271b0b5f no eth1
eth0
br0 8000.0800271b0b5f no eth1
eth0
댓글을 달아 주세요