View previous topic :: View next topic |
Author |
Message |
javeree Guru
Joined: 29 Jan 2006 Posts: 455
|
Posted: Thu Dec 11, 2008 8:27 pm Post subject: giving my server a single fixed address |
|
|
I have a server with one interface ppp0 towards internet (changing ip address) and two interfaces towards tha lan (eth0 and eth1)
eth0 = 192.168.0.1/24
eth1 = 192.168.1.1/24
/etc/hosts contains
127.0.0.1 localhost
192.168.0.1 Zeus
Zeus runs dnsmasq with a
I never had a problem in my lan pinging or ssh'ing between the two subnets until yesterday for the first time, there was no cable connected to eth0, and suddenly the subnet on eth1 could not connect anymore to Zeus:
ping Zeus; ssh Zeus; nfsmount /mnt/Zeus/... all resolve to 192.168.0.1, which is an interface that is not available anymore as it is under control of ifplugd, so they all fail.
when I run ping 192.168.1.1 there is no problem.
The problem seems to be somehow in the resolution of the name Zeus always returning an ip address in subnet 0. Would there be a way to e.g. configure dnsmasq or /etc/hosts or whatever to resolve 'Zeus' in subnet 0 to 192.168.0.1 and in subnet 1 to 192.168.1.1 ? |
|
Back to top |
|
|
poly_poly-man Advocate
Joined: 06 Dec 2006 Posts: 2477 Location: RIT, NY, US
|
Posted: Fri Dec 12, 2008 12:56 am Post subject: |
|
|
you could probably do it if you ran bind and spent a while config'ing it...
However, is there a specific reason why you need two subnets? It seems the best solution (from the information you've given us) is to migrate everything to one subnet (10.x.x.x if you need more room, or just 192.168.x.x), run bridging on Zeus's eth0 and eth1. _________________ iVBORw0KGgoAAAANSUhEUgAAA
avatar: new version of logo - see topic 838248. Potentially still a WiP. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|