Hi all i've a problemi in configuring my network to work correctly.
I've an ip class 200.200.200.192/28 with netmask 255.255.255.240, so my range of ip for public machine varies from 200.200.200.193 to 200.200.200.206.
My default gateway is 200.200.200.193, so to configure a machine i'll do this commands
with this configuration all works fine.
NOW THE PROBLEM....
We have recived another subnet of ip adresses suppose to be 100.100.100.192/28 with netmask 255.255.255.240 so the range of ip is 100.100.100.193-100.100.100.206, in this case the default gateway must be the first gataway i'll used in previous configuration 200.200.200.193
i'll tried to configure this network as follow
but when i'll execute the second command i'll get this error
The two networks 100.100.100.192/28 and 200.200.200.192/28 use the same switch, and on this switch is attached the gataway 200.200.200.193.
Now the question are
1. Is it possibile to manage two differenet network on the same switch, or i've to buy another one and connect to the other via uplink?
2. I'm configuring something wrong?
I hope someone can help me with this problem.
p.s: the subnet are not the real subnet of IP adresses, they are completly random but are the same configuration of my network.
I've an ip class 200.200.200.192/28 with netmask 255.255.255.240, so my range of ip for public machine varies from 200.200.200.193 to 200.200.200.206.
My default gateway is 200.200.200.193, so to configure a machine i'll do this commands
Code:
ifconfig eth0 200.200.200.194 netmask 255.255.255.240
route add default gw 200.200.200.193
with this configuration all works fine.
NOW THE PROBLEM....
We have recived another subnet of ip adresses suppose to be 100.100.100.192/28 with netmask 255.255.255.240 so the range of ip is 100.100.100.193-100.100.100.206, in this case the default gateway must be the first gataway i'll used in previous configuration 200.200.200.193
i'll tried to configure this network as follow
Code:
ifconfig eth0 100.100.100.194 netmask 255.255.255.240
route add default gw 200.200.200.193
but when i'll execute the second command i'll get this error
Code:
SIOCADDRT: Network is unreachable
The two networks 100.100.100.192/28 and 200.200.200.192/28 use the same switch, and on this switch is attached the gataway 200.200.200.193.
Now the question are
1. Is it possibile to manage two differenet network on the same switch, or i've to buy another one and connect to the other via uplink?
2. I'm configuring something wrong?
I hope someone can help me with this problem.
p.s: the subnet are not the real subnet of IP adresses, they are completly random but are the same configuration of my network.