Christos Panagiotakis wrote:
> Hello, I have a problem with bridging 2 different networks
> We have already a network with ips like 10.165.0.1 and subnet mask
> 255.255.255.224 and we have a linux box running slackware 10.
> With this box we want to bridge 10.165.0.0 network with a new one
> 10.166.0.0 (subnet 255.255.255.224)
> We dont know how to bridge them... Any ideas?
> the linuxbox has eth0 and eth1. eth0 = 10.165.0.0 and i couldnt find out
> how to configure eth1 as 10.165.0.0
> Any ideas?
> thanks
Why don't you just want to route? ( to enable routing type: 'echo 1
> /proc/sys/net/ipv4/ip_forward')
setup your network-devices using ifconfig:
'ifconfig eth0 10.165.0.1 netmask 255.255.255.224 up'
'ifconfig eth1 10.166.0.1 netmask 255.255.255.224 up'
Note:
=========
1st network:
Address: 10.165.0.1 00001010.10100101.00000000.000 00001
Netmask: 255.255.255.224 = 27 11111111.11111111.11111111.111 00000
Wildcard: 0.0.0.31 00000000.00000000.00000000.000 11111
=>
Network: 10.165.0.0/27 00001010.10100101.00000000.000 00000 (Class
A)
Broadcast: 10.165.0.31 00001010.10100101.00000000.000 11111
HostMin: 10.165.0.1 00001010.10100101.00000000.000 00001
HostMax: 10.165.0.30 00001010.10100101.00000000.000 11110
Hosts/Net: 30 (Private Internet)
2nd network:
Address: 10.166.0.1 00001010.10100110.00000000.000 00001
Netmask: 255.255.255.224 = 27 11111111.11111111.11111111.111 00000
Wildcard: 0.0.0.31 00000000.00000000.00000000.000 11111
=>
Network: 10.166.0.0/27 00001010.10100110.00000000.000 00000 (Class
A)
Broadcast: 10.166.0.31 00001010.10100110.00000000.000 11111
HostMin: 10.166.0.1 00001010.10100110.00000000.000 00001
HostMax: 10.166.0.30 00001010.10100110.00000000.000 11110
Hosts/Net: 30
That means each of your networks my at least have maximum 30 computers. The
first useable ip in your network is 10.165.0.1/10.166.0.1, the last one is
10.165.0.30/10.166.0.30!
|