Similar Threads:
1.two dsl connections, two routers, dual nics on linux box , want to run two websites
Hello,
I have two dsl connections, with one public ip on each. I have a linux
box with two nic cards.
xx.xx.xx.xx(WAN)---ROUTER(LAN23.123.45.110) ---- MYLINUX
(23.123.45.107) eth1
yy.yy.yy.yy(WAN)---ROUTER(LAN192.182.1.1) ---- MYLINUX
(192.168.1.100) eth0
I have apache listening on both interfaces.
Problem:
1. How do I make the packets route back to the gateway from which they
originate.
Currently the gateway marked as "default" is able to serve content
from the apache. The other one cannot.
I tried adding static routes, but that didn't work.
Any help is appreciated.
Thanks
Jay
---------------------------------------------------------------------
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref
Use Iface
adsl-23-123-45- adsl-23-123-45- 255.255.255.255 UGH 0 0
0 eth1
23.123.45.0 * 255.255.255.0 U 0 0
0 eth1
192.168.1.0 * 255.255.255.0 U 0 0
0 eth0
loopback * 255.0.0.0 U 0 0
0 lo
default 192.168.1.1 0.0.0.0 UG 1 0
0 eth0
eth0 Link encap:Ethernet HWaddr 00:0D:87:57:A0:DE
inet addr:192.168.1.100 Bcast:192.168.1.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3060612 errors:0 dropped:0 overruns:0 frame:0
TX packets:3577217 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1566982235 (1494.3 Mb) TX bytes:1126616733 (1074.4
Mb)
Interrupt:11 Base address:0xe000
eth1 Link encap:Ethernet HWaddr 00:40:05:39:0E:EA
inet addr:23.123.45.107 Bcast:68.123.24.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:90635 errors:0 dropped:0 overruns:0 frame:0
TX packets:31082 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:23017102 (21.9 Mb) TX bytes:13283751 (12.6 Mb)
Interrupt:11 Base address:0xe000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:11888 errors:0 dropped:0 overruns:0 frame:0
TX packets:11888 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6920794 (6.6 Mb) TX bytes:6920794 (6.6 Mb)
2.Two distros, two video cards.
I am running Mandrake 10.1 with a modern GeForce video card (AGP). I want
to install Mandrake 9.0 alongside it to run some old software that hasn't
been updated, but my new card isn't supported and I cannot start X, even
with the "nv" driver. I don't seem to be able to get a usable set of
config options.
I still have my old PCI Riva TNT2 card, and would be happy to run it with
the "nv" driver for this purpose. If the NVidia driver works, that is a
bonus.
Can I install both cards, and select only one in the setup on each distro?
I think I saw something like that in the early days, when an old card could
be configured two ways, and showed up as 2 cards. There is a thread on
getting two different cards to work at the same time, but here that
wouldn't be necessary. Perhaps I can install the modern Xorg files on the
old distro, but that might introduce library version conflicts, which are
the reason for the whole exercise. If it is possible, that might be the
next step.
TIA,
Doug.
--
ICQ Number 178748389. Registered Linux User No. 277548.
Happiness is nothing more than good health and a bad memory.
- Albert Schweitzer.
3.One DHCP server - two interfaces - two subnets
Hi
I run a DHCP server which supports wired internet in the internal LAN range
192.168.0.1/24. Now I wish to add a wireless internet LAN in the internal
LAN range 10.0.0.1/24. How do I accomplish this ?
/etc/dhcpd.conf :
option www-server 207.75.181.2,141.213.6.5,141.213.6.1;
ddns-update-style ad-hoc;
subnet 192.168.0.0 netmask 255.255.255.0
{
range 192.168.0.3 192.168.0.10;
}
subnet 10.0.0.0 netmask 255.255.255.0
{
range 10.0.0.3 10.0.0.10;
}
host clientwired
{
hardware ethernet wr:wr:wr:wr:wr:wr;
fixed-address 192.168.0.2;
}
host clientwireless
{
hardware ethernet wl:wl:wl:wl:wl:wl;
fixed-address 10.0.0.2;
}
where wr:wr:wr:wr:wr:wr and wl:wl:wl:wl:wl:wl are the obfuscated hardware
addresses for two clients - one wired and one wireless. How do I make sure
that the server listens on eth0 for the wired connections (192.168.0.1/24 -
as it already does) and wlan0 for wireless connections (10.0.0.1/24) ?
Thanks,
MS
4.having two interfacesand two default routes..debian etch.
I've done a bit of research on this, but the answers are still unclear.
So any help appreciated.
I want to migrate a linux server fronm one ISP to another semalessly.
At some point, the dns servers pointing to it will switch IP addresses
as caches time out etc, so for a while., I want it to respond via either
ISP - I will have twin routers and twin DSL.
The only application of note is an apache web server.
The server is on 192.168 network using NAT routers
The server is on 192.168.0.100, and the current gateway is 192.168.0.254
Apache is not bound in any special way..it sits on any and all interfaces.
Lets say I bring up another router to a different ISP on a different
public IP address, and its Internal interface is 192.168.2.1
then
#ifconfig etho:1 192.168.2.100 will add a virtual interface to talk to it.
If I now add a second default route as
#route add default gw 192.168.2.1 eth0:1
then it has a choice of default routes.
My question is this: will the network side of the kernel know which way
to route packets originating from this machine in response to incoming
requests down a specific interface?
I.e. with two default routes, will it pick one at random, or use the one
associated with the interface that it received the packets on?
In particular Apache, as that is the only application that 'needs to know'
I.e. will apache always send packets out via the same interface as it's
particular forked instance received them on? Or is it something deeper
that makes that decision, in which case how would it 'know' which way
the original source packet came from? It seems to me a state table
-'route these IP address targets via that interface cos that's how they
came' is needed?
I cant afford to let it go randomly via either interface because each
will translate to a different IP address as far as the world beyond NAT
is concerned..
Anyone know chapter and verse?
5.How to set my Linux machine to have two network cards with two IPs
Dear all gurus out there,
I am newbie to Linux and networking.
I have a Red hat linux that used as a Database machine, oracle.
I have 2 network cards that I wish to set to 192.168.0.10 and
192.168.0.11 respectively, the default gw is 192.168.0.1. The
connection of the two IPs coming from 2 different switches (still from
the same router).
My purpose is that : if one of the switches is down, my connection
still up with the other side.
I know switch is hardly "down", but i wish to have full redundancy.
What I did is, I jus set the 2 network cards with the two IPs and I
switch off one of the switches, "poof" the whole network
down..........so, how can it be done ?
Or any other alternatives ?
Thanks.
6. Networking between two PC with both having two Ethernet port
7. Forwarding of multicast packets between two subnets with two NICS - Does not work
8. route based on incoming eth out ppp - two eth / two ppp