two networks

two networks

Post by Michael Starki » Sun, 31 Dec 1899 09:00:00



I have a default getway specified for my ethernet device which is
enabled and connected to an ethernet. When I dial up to another network,
using ppp, I can't do anything on that new network. I think it is
because I don't have a gateway or route set up  for the new network.
Does anyone have experience setting up their route tables for multiple
networks. What do I need to do?
 
 
 

two networks

Post by Tony Gree » Sun, 31 Dec 1899 09:00:00


You need to add a new gateway through the ppp device for anything outside of
your network

> I have a default getway specified for my ethernet device which is
> enabled and connected to an ethernet. When I dial up to another network,
> using ppp, I can't do anything on that new network. I think it is
> because I don't have a gateway or route set up  for the new network.
> Does anyone have experience setting up their route tables for multiple
> networks. What do I need to do?


 
 
 

two networks

Post by Michael Starki » Sun, 31 Dec 1899 09:00:00



> You need to add a new gateway through the ppp device for anything outside of
> your network


> > I have a default getway specified for my ethernet device which is
> > enabled and connected to an ethernet. When I dial up to another network,
> > using ppp, I can't do anything on that new network. I think it is
> > because I don't have a gateway or route set up  for the new network.
> > Does anyone have experience setting up their route tables for multiple
> > networks. What do I need to do?

I have done that using an interface to kppp. It still doesn't work.  The
information is not in my routing table. I think this is the problem but I'm not
sure.
 
 
 

two networks

Post by Tony Gree » Sun, 31 Dec 1899 09:00:00


When I do this, I try something along the lines of
'route add default gw ###.###.###.###' (the ip addr of the host) and this works -
perhaps you should try something along those lines.  I have used Kppp a little and
I know its quite nice - but there is no substitute for the command line :-)


> > You need to add a new gateway through the ppp device for anything outside of
> > your network


> > > I have a default getway specified for my ethernet device which is
> > > enabled and connected to an ethernet. When I dial up to another network,
> > > using ppp, I can't do anything on that new network. I think it is
> > > because I don't have a gateway or route set up  for the new network.
> > > Does anyone have experience setting up their route tables for multiple
> > > networks. What do I need to do?

> I have done that using an interface to kppp. It still doesn't work.  The
> information is not in my routing table. I think this is the problem but I'm not
> sure.

 
 
 

two networks

Post by MStar.. » Sun, 31 Dec 1899 09:00:00


That's for sure. I didn't know you can assign the default gateway on the
fly.
 
 
 

two networks

Post by Tony Gree » Sun, 31 Dec 1899 09:00:00


Did it work though :-?

> That's for sure. I didn't know you can assign the default gateway on the
> fly.

 
 
 

two networks

Post by Michael Starki » Sun, 31 Dec 1899 09:00:00



> Did it work though :-?


> > That's for sure. I didn't know you can assign the default gateway on the
> > fly.

    No. The output was :

Quote:>/sbin/route add default gw ###.###.###.###
>SIOCADDRT: Network is unreachable

    huh? I can't connect until I specify a gateway but I can't specify a
gateway until I connect????
 
 
 

two networks

Post by Michael Starki » Sun, 31 Dec 1899 09:00:00



> Did it work though :-?


> > That's for sure. I didn't know you can assign the default gateway on the
> > fly.

Also

Quote:>ps -ef | grep  ppp

root      3151   975  0 18:18 pts/3    00:00:00 kppp
root      3152  3151  0 18:18 ?        00:00:00 kppp
root      3153  3152  0 18:19 ttyS2    00:00:00 pppd 57600 -detach
:###.###.###.###
 
 
 

two networks

Post by winri » Sun, 31 Dec 1899 09:00:00




> > Did it work though :-?


> > > That's for sure. I didn't know you can assign the default gateway on the
> > > fly.

> Also

> >ps -ef | grep  ppp
> root      3151   975  0 18:18 pts/3    00:00:00 kppp
> root      3152  3151  0 18:18 ?        00:00:00 kppp
> root      3153  3152  0 18:19 ttyS2    00:00:00 pppd 57600 -detach
> :###.###.###.###

Well now it depends on what the network is, if it's a home network and you
don't have anything critical running, set the machine that dials out (we'll
call it "dialout") to the default gateway of your ISP, next set the other
computers on the network to use the IP of dialout as thier default gateway.
This way when the other computers want to get out to the net, they basically
ask dialout for the information, dialout retrieves the data and sends it back
to the requesting computer, ofcourse I am masq'ing the IP's in this senerio,
using ipchains.
 
 
 

1. two network cards, two(?) networks, one computer...

Greets.

At work we have several servers with two network
cards per configured on the same network.
Ie. one card would be 192.168.1.4 and the second one 192.168.1.5.
One card is plugged into the backbone.
However, the other card is plugged into a 'server-only' hub,
I guess for inter-server communication.

My question: is this sane?

--
Robert Dale

   "arrest this man he talks in maths"
                          RADIOHEAD OK COMPUTER

2. Ghostview says: X11: unknown device

3. Two Ethernet cards, two networks, now what?

4. Raid checking

5. Joining two networks through two dial-up-ing linux boxes

6. LILO v19 stops at Partiton check: hda: then nothing

7. How to set my Linux machine to have two network cards with two IPs

8. Can't mount an NFS volume

9. iptable rules for two networks connected with two firewalls

10. two computer connected by two network cards

11. Two networks on two computers?

12. two public ips from two networks on one server

13. Connecting two networks with two linux boxes.