[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ppp and routing question




BTW, I already found out how to do it, so you may stop 
replying :{)

Sorry for noise.

On Sat, 14 Mar 1998, Alexander Indenbaum wrote:

> On Sat, 14 Mar 1998, Peter L. Peres wrote:
> 
> > 
> > I understand, that your machine is a part of a small network, and that it
> > sometimes connects to the internet via PPP, having a fixed IP.
> 
> I have one PC which connects to internet via PPP, having a fixed IP.
> The question is about routing. When I am connected I set default route to 
> ppp server:
> Destination        Gateway            Flags     Refs     Use     Netif Expire
> default            194.90.211.222     UGc         6        0      ppp0
> 127.0.0.1          127.0.0.1          UH          0       32       lo0
> 194.90.211.222     194.90.211.221     UH          7        0      ppp0
> And traffic from my PC to my IP ( 194.90.211.221 ) routed via PPP server:
> 8:58pm elina -> /home/baum>traceroute elina
> traceroute to elina.abirnet.co.il (194.90.211.221), 30 hops max, 40 byte packets
> 1  ras (194.90.211.222)  178.518 ms  166.832 ms  169.121 ms
> 2  elina (194.90.211.221)  369.753 ms  344.015 ms  339.914 ms
> 
> When I disconnected, I do not have default route, and the only route
> present is to 127.0.0.1 via loopback
> Destination        Gateway            Flags     Refs     Use     Netif Expire
> 127.0.0.1          127.0.0.1          UH          0       32       lo0
> 
> And my IP from my PC is unreachable.
> 9:02pm elina -> /home/baum>telnet elina
> Trying 194.90.211.221...
> telnet: Unable to connect to remote host: No route to host
> 
> The question is how do I defined route to my IP? Thru which device ppp lo
> or something else?
> 
> 
> 
> > 
> > If this is true:
> > 
> > - Give your machine the name it has to have and set its IP in /etc/hosts.
> > Set 'order hosts,bind' in /etc/host.conf and also multi on if your machine
> > also has another name and IP on the local network.
> > 
> > - Change the startup scripts to set 'hostname' to what is assigned to the
> > fixed IP in hosts. If you don't want to reboot, issue a 'hostname
> > THIS_NAME' as root now.
> > 
> > - You do not need to run bind for this. If you want to, make a caching
> > bind configuration and run it. 
> > 
> >- You may also have in /etc/resolv.conf your machine as a nameserver,
> > BEFORE the ISP's nameserver, IFF you run bind caching only. Else leave
> > only the ISPs nameserver there.
> > 
> > Usually it is sane to restart all the daemons after setting the hostname,
> > better reboot the machine (shutdown -r...).
> > 
> > hope this helps,
> > 	Peter
> > 
> 
> Alexander Indenbaum
> baum@actcom.co.il
> 
> 

  Alexander Indenbaum
  baum@actcom.co.il