Need help:routing table for 1 eth and n ppp interfaces

Need help:routing table for 1 eth and n ppp interfaces

Post by Wu, Simon [WDLN2:2X38:EXCH » Sat, 10 Feb 2001 23:41:21



Hello,

In one of my special test, I need to make multiple ppp configurations on
one of my linux (Redhat 6.2) PC, which already have an eth0 connection
to the corporate LAN. I need to create a IP routing for ppp0, ppp1, ...
ppp32 in the same PC. Two questions:
1. Should I use "defaultroute" in the /etc/ppp/options file?
2. I require all datagram for each ppp# go through the ppp# interface,
not the eth0 interface which is up all the time. I tried a few routing
opions in /etc/ppp/ip-up shell script file. None worked. Which argument
should I use for /sbin/route for this situation?

I appreciated any help. Thanks a lot.

Simon

 
 
 

Need help:routing table for 1 eth and n ppp interfaces

Post by James Carlso » Sat, 10 Feb 2001 23:53:09



Quote:> In one of my special test, I need to make multiple ppp configurations on
> one of my linux (Redhat 6.2) PC, which already have an eth0 connection
> to the corporate LAN. I need to create a IP routing for ppp0, ppp1, ...
> ppp32 in the same PC. Two questions:
> 1. Should I use "defaultroute" in the /etc/ppp/options file?

No.  The "defaultroute" option means that PPP will install a default
route pointing over the PPP link.  It's generally used when the PPP
link connects to an ISP, and should never be used if the peer is just
an end node.

Use "nodefaultroute" instead to make sure that no bogus routes are
added by these remote users.

Quote:> 2. I require all datagram for each ppp# go through the ppp# interface,
> not the eth0 interface which is up all the time. I tried a few routing
> opions in /etc/ppp/ip-up shell script file. None worked. Which argument
> should I use for /sbin/route for this situation?

For most configurations, you shouldn't need any commands to do this.

Please post more information about your configuration.  There are lots
of options here, and it's impossible to tell what you're doing without
having detailed information.

The easiest way to configure simple remote nodes is to give each node
an unused remote address that's inside the same subnet as assigned to
the eth0 interface, and use the "proxyarp" option.  Don't forget to
enable IP forwarding as well.

--

SUN Microsystems / 1 Network Drive         71.234W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.497N   Fax +1 781 442 1677
Second Edition now available - http://people.ne.mediaone.net/carlson/ppp

 
 
 

Need help:routing table for 1 eth and n ppp interfaces

Post by Bill Unr » Sun, 11 Feb 2001 06:02:06



Quote:>In one of my special test, I need to make multiple ppp configurations on
>one of my linux (Redhat 6.2) PC, which already have an eth0 connection
>to the corporate LAN. I need to create a IP routing for ppp0, ppp1, ...
>ppp32 in the same PC. Two questions:
>1. Should I use "defaultroute" in the /etc/ppp/options file?
>2. I require all datagram for each ppp# go through the ppp# interface,
>not the eth0 interface which is up all the time. I tried a few routing
>opions in /etc/ppp/ip-up shell script file. None worked. Which argument
>should I use for /sbin/route for this situation?

More info is needed.
The default route is where packets are sent which your computer does not
know what to do with. Place the default route on whatever connection you
want such packets to be sent to. There can only be one default route.
The format of the route command is
route add -host HOstIP ppp?
where ? is the ppp connection number.
or
route add -net NetIP netmask NetMast ppp?
where NetMask is the net mask that net is supposed to use.
Since you have given us no info I can be no more helpful than this.
 
 
 

Need help:routing table for 1 eth and n ppp interfaces

Post by Wu, Simon [WDLN2:2X38:EXCH » Mon, 12 Feb 2001 10:29:03


Thanks a lot for your time. Here is more info:

original route table:

Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface

47.159.203.172  0.0.0.0         255.255.255.255 UH        0 0          0
eth0

47.159.192.0    0.0.0.0         255.255.240.0   U         0 0          0
eth0

127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0
lo

0.0.0.0         47.159.192.194  0.0.0.0         UG        0 0          0
eth0

dial first ppp connection, I got:

ppp0, remote IP 47.131.80.12, local IP 47.131.80.123

dial 2nd ppp, I got:

ppp1, remote IP 47.131.80.12, local IP 47.131.80.110

I need to have upto 64 ppp connections on the same machine.

I require 47.131.80.123 go through ppp0 and x.x.80.110 go though ppp1.
Righ now, if I don't change any route, they all choose to go through
eth0.

After the above dial in, I got the following routing table:

Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface

47.131.80.12    0.0.0.0         255.255.255.255 UH        0 0          0 ppp0

47.131.80.12    0.0.0.0         255.255.255.255 UH        0 0          0 ppp1

47.159.203.172  0.0.0.0         255.255.255.255 UH        0 0          0
eth0

47.159.192.0    0.0.0.0         255.255.240.0   U         0 0          0
eth0

127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0
lo

0.0.0.0         47.159.192.194  0.0.0.0         UG        0 0          0
eth0

This Linux PC is dedicated to my test, I can change the routing table
any way I like. I didn't add any route cmd in ip-up yet. The following
is my options file:

lock

-detach

modem
crtscts

asyncmap 0

38400
noauth

nodefaultroute

ipcp-accept-remote   #accept any remote assign IP

ipcp-accept-local   #accept any local assign IP

lcp-echo-interval 5
lcp-echo-failure 50

lcp-max-configure 20
~                        

Simon



> > In one of my special test, I need to make multiple ppp configurations on
> > one of my linux (Redhat 6.2) PC, which already have an eth0 connection
> > to the corporate LAN. I need to create a IP routing for ppp0, ppp1, ...
> > ppp32 in the same PC. Two questions:
> > 1. Should I use "defaultroute" in the /etc/ppp/options file?

> No.  The "defaultroute" option means that PPP will install a default
> route pointing over the PPP link.  It's generally used when the PPP
> link connects to an ISP, and should never be used if the peer is just
> an end node.

> Use "nodefaultroute" instead to make sure that no bogus routes are
> added by these remote users.

> > 2. I require all datagram for each ppp# go through the ppp# interface,
> > not the eth0 interface which is up all the time. I tried a few routing
> > opions in /etc/ppp/ip-up shell script file. None worked. Which argument
> > should I use for /sbin/route for this situation?

> For most configurations, you shouldn't need any commands to do this.

> Please post more information about your configuration.  There are lots
> of options here, and it's impossible to tell what you're doing without
> having detailed information.

> The easiest way to configure simple remote nodes is to give each node
> an unused remote address that's inside the same subnet as assigned to
> the eth0 interface, and use the "proxyarp" option.  Don't forget to
> enable IP forwarding as well.

> --

> SUN Microsystems / 1 Network Drive         71.234W   Vox +1 781 442 2084
> MS UBUR02-212 / Burlington MA 01803-2757   42.497N   Fax +1 781 442 1677
> Second Edition now available - http://people.ne.mediaone.net/carlson/ppp

 
 
 

Need help:routing table for 1 eth and n ppp interfaces

Post by Wu, Simon [WDLN2:2X38:EXCH » Mon, 12 Feb 2001 10:30:50


Thanks a lot, Bill. I enclosed more info with my previous reply to
James.

Thanks again.

simon



> >In one of my special test, I need to make multiple ppp configurations on
> >one of my linux (Redhat 6.2) PC, which already have an eth0 connection
> >to the corporate LAN. I need to create a IP routing for ppp0, ppp1, ...
> >ppp32 in the same PC. Two questions:
> >1. Should I use "defaultroute" in the /etc/ppp/options file?
> >2. I require all datagram for each ppp# go through the ppp# interface,
> >not the eth0 interface which is up all the time. I tried a few routing
> >opions in /etc/ppp/ip-up shell script file. None worked. Which argument
> >should I use for /sbin/route for this situation?

> More info is needed.
> The default route is where packets are sent which your computer does not
> know what to do with. Place the default route on whatever connection you
> want such packets to be sent to. There can only be one default route.
> The format of the route command is
> route add -host HOstIP ppp?
> where ? is the ppp connection number.
> or
> route add -net NetIP netmask NetMast ppp?
> where NetMask is the net mask that net is supposed to use.
> Since you have given us no info I can be no more helpful than this.

 
 
 

Need help:routing table for 1 eth and n ppp interfaces

Post by Bill Unr » Mon, 12 Feb 2001 17:10:38



]Thanks a lot for your time. Here is more info:

This makes no sense at all. Why do you want more than 1 ppp connection
to the same remote machine? If you want multi sharing, it will not work.
You will just get all packets going through the last ppp line brought
up.

I think you need to tell us what you are really trying to do, because
what I see here makes little sense to me.

]original route table:

]Destination     Gateway         Genmask         Flags   MSS Window  irtt
]Iface

]47.159.203.172  0.0.0.0         255.255.255.255 UH        0 0          0
]eth0

]47.159.192.0    0.0.0.0         255.255.240.0   U         0 0          0
]eth0

]127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0
]lo

]0.0.0.0         47.159.192.194  0.0.0.0         UG        0 0          0
]eth0

]dial first ppp connection, I got:

]ppp0, remote IP 47.131.80.12, local IP 47.131.80.123

]dial 2nd ppp, I got:

]ppp1, remote IP 47.131.80.12, local IP 47.131.80.110

]I need to have upto 64 ppp connections on the same machine.

]I require 47.131.80.123 go through ppp0 and x.x.80.110 go though ppp1.
]Righ now, if I don't change any route, they all choose to go through
]eth0.

]After the above dial in, I got the following routing table:

]Destination     Gateway         Genmask         Flags   MSS Window  irtt
]Iface

]47.131.80.12    0.0.0.0                255.255.255.255 UH        0 0          0 ppp0

]47.131.80.12    0.0.0.0                255.255.255.255 UH        0 0          0 ppp1

]47.159.203.172  0.0.0.0         255.255.255.255 UH        0 0          0
]eth0

]47.159.192.0    0.0.0.0         255.255.240.0   U         0 0          0
]eth0

]127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0
]lo

]0.0.0.0         47.159.192.194  0.0.0.0         UG        0 0          0
]eth0

]This Linux PC is dedicated to my test, I can change the routing table
]any way I like. I didn't add any route cmd in ip-up yet. The following
]is my options file:

]lock

]-detach

]modem
]crtscts

]asyncmap 0

]38400
]noauth

]nodefaultroute

]ipcp-accept-remote   #accept any remote assign IP

]ipcp-accept-local   #accept any local assign IP

]lcp-echo-interval 5
]lcp-echo-failure 50

]lcp-max-configure 20
]~                        

]Simon
]>

]> > In one of my special test, I need to make multiple ppp configurations on
]> > one of my linux (Redhat 6.2) PC, which already have an eth0 connection
]> > to the corporate LAN. I need to create a IP routing for ppp0, ppp1, ...
]> > ppp32 in the same PC. Two questions:
]> > 1. Should I use "defaultroute" in the /etc/ppp/options file?
]>
]> No.  The "defaultroute" option means that PPP will install a default
]> route pointing over the PPP link.  It's generally used when the PPP
]> link connects to an ISP, and should never be used if the peer is just
]> an end node.
]>
]> Use "nodefaultroute" instead to make sure that no bogus routes are
]> added by these remote users.
]>
]> > 2. I require all datagram for each ppp# go through the ppp# interface,
]> > not the eth0 interface which is up all the time. I tried a few routing
]> > opions in /etc/ppp/ip-up shell script file. None worked. Which argument
]> > should I use for /sbin/route for this situation?
]>
]> For most configurations, you shouldn't need any commands to do this.
]>
]> Please post more information about your configuration.  There are lots
]> of options here, and it's impossible to tell what you're doing without
]> having detailed information.
]>
]> The easiest way to configure simple remote nodes is to give each node
]> an unused remote address that's inside the same subnet as assigned to
]> the eth0 interface, and use the "proxyarp" option.  Don't forget to
]> enable IP forwarding as well.
]>
]> --

]> SUN Microsystems / 1 Network Drive         71.234W   Vox +1 781 442 2084
]> MS UBUR02-212 / Burlington MA 01803-2757   42.497N   Fax +1 781 442 1677
]> Second Edition now available - http://people.ne.mediaone.net/carlson/ppp

 
 
 

Need help:routing table for 1 eth and n ppp interfaces

Post by Clifford Kit » Tue, 13 Feb 2001 03:01:06



Quote:> dial first ppp connection, I got:
> ppp0, remote IP 47.131.80.12, local IP 47.131.80.123
> dial 2nd ppp, I got:
> ppp1, remote IP 47.131.80.12, local IP 47.131.80.110
> I need to have upto 64 ppp connections on the same machine.
> I require 47.131.80.123 go through ppp0 and x.x.80.110 go though ppp1.
> Righ now, if I don't change any route, they all choose to go through
> eth0.

Does this really mean that each packet with the IP address x.x.80.110,
for some arbitrary x, 0<=x<=255, must go through the PPP interface ppp1?
In the setup above only packets bound for 47.131.80.12 will go through
that interface.

Are you dialing just one machine or 64 different machines, each using
the remote IP 47.131.80.12?

We need to know what you really need to do and I, for one, am still
confused about that.

--

/* 97.3% of all statistics are made up. */

 
 
 

1. Create routing table for 1 eth and multiple ppp interface

Hello,

In one of my special test, I need to make multiple ppp configurations on
one of my linux (Redhat 6.2) PC, which already have an eth0 connection
to the corporate LAN. I need to create a IP routing for ppp0, ppp1, ...
ppp32 in the same PC. Two questions:
1. Should I use "defaultroute" in the /etc/ppp/options file?
2. I require all datagram for each ppp# go through the ppp# interface,
not the eth0 interface which is up all the time. I tried a few routing
opions in /etc/ppp/ip-up shell script file. None worked. Which argument
should I use for /usr/sbin/route ?

I appreciated any help. Thanks.

Simon

2. Where's the docs on all the patches?

3. route based on incoming eth out ppp - two eth / two ppp

4. Delegating DNS resolving?

5. Router dropping packets from eth interface to ppp interface

6. UNIX for 80386 Machines

7. route packet based on incoming interface, not by routing table??

8. Deskjet 560C and Slackware

9. How to set up routing table or gateway tables for ppp?

10. How Do Routing Table Entries Get Added to Routing Table at Bootup?

11. Build Route between PPP Interface/Ethernet Interface

12. Help - dial-in PPP kills routing table on hangup

13. facing problems in configuring two (PPP, Eth) interfaces.