Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

i have a linux server (RHEL5) inside an HP Enclosure system, i would to create a bridge or a VIF or a chunking (sorry because i am a newbie in this operation) able to hide eth0 and eth1 as two different devices and to show them me as a single device instead.

If anyone can give me some information about this operation, it will be very useful.

thank you Max

share|improve this question

2 Answers 2

If you mean a bridge in the strict networking sense (simply put, a layer 2 device which passes packets from one interface out of the other), then you should be able to do this like so:

1) Edit both /etc/sysconfig/network-scripts/ifcfg-eth0 and /etc/sysconfig/network-scripts/ifcfg-eth1 to remove any IP address/netmask/gateway configuration and add a specified bridge. It should look something like this:

DEVICE=eth0 (or eth1)
HWADDR=00:11:22:33:44:55
ONBOOT=yes
BRIDGE=br0

2) Edit a new file, /etc/sysconfig/network-scripts/ifcfg-br0 which contains your IP address information. This should look something like this:

DEVICE=br0
TYPE=Bridge
ONBOOT=yes
DELAY=0
BOOTPROTO=static
BROADCAST=192.168.1.255
IPADDR=192.168.1.100
NETMASK=255.255.255.0
NETWORK=192.168.1.0
GATEWAY=192.168.1.1

Your IP address is then assigned on the bridge, so should be accessible from either interface. Also packets should be forwarded between the interfaces. If this wasn't what you meant by the question then my apologies, this is how to set up a bridge but it may be that a bridge isn't what you need, the question wasn't 100% clear...

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.