Click to See Complete Forum and Search --> : Bridge setup! HELP!
GudDerG
03-11-2002, 08:11 PM
Hi, I'm setting up my linux box as a bridge, I have two nics and the bridge is working. The only thing is that I want to setup my machine as a apache server as well. Right now, the linux box have no connection to the network, but the bridge is working great. The bridge which is a switch and allows my NT box to connect to the network. I'm connected to a DHCP network. Is there anyway I can configure the bridge such that the linux box is not just a switch and that I can connect internet to it too?
Thanks.
jumpedintothefire
03-11-2002, 09:56 PM
You got bridging to work, that great..
The last line to bring the bridge up is something like:
ifconfig br0 up
instead try:
ifconfig br0 192.168.0.1 netmask 255.255.255.0 up
adjust to suit your network...
GudDerG
03-11-2002, 11:23 PM
Hi, just one more question, what IP should i put? Hmm, the DCHP ip that assigned to my network card?? Or just a random ip??
ifconfig br0 <ip> netmask ....
jumpedintothefire
03-12-2002, 12:30 AM
That should work just fine, no clashes on the dhcp network if just had it pull an ip, then disable the interface when you add it to the bridge then reuse the same ip. The MAC address and ip address should be reserved, but could pose a problem at lease renewal time... Just a thought, how does the NT box get an ip? fixed or dhcp? Maybe you could exclude a small pool of ips on the dhcp sever (not hand them out at all) for use as fixed ips on the lan.