Re: Networking woes (Detailed & Long)

1996-11-06 Thread Craig Sanders

On Tue, 5 Nov 1996, Walter L. Preuninger II wrote:

> When I am not connected to the internet using ppp (207.86.80.129)
> route will hang right after the localnet line. If I am connected to the
> net, or if named is not running, route does its job and gets out of the
> way. I do replace my default route when ppp comes up.
> 
> Question 1
>I think that is indicates a dns problem, but why? 199.233.164.33 is a
> local address.

just wait. i'll bet that it's not actually hanging, it's just waiting
for the name server to respond with an answer...eventually it will time
out.

some questions for you to think about:

are you primary or secondary nameserver for 164.233.199.in-addr.arpa?
alternatively is there a local primary or secondary for that zone?


is localhost (or 127.0.0.1) the first nameserver entry in
/etc/resolv.conf?

who is the forwarder specified in /var/named/boot.options?  your ISP?

when you run the 'route' or 'netstat -r' command, it tries to resolve a
name for the host/network address, unless you specify the '-n' numbers
option.



> Question 2
>Why does 199.233.164.32 show up in the route output. I have an
> /etc/networks file that looks like:
> localnet199.233.164.0
> loannet 199.233.164.32
> localhost   127.0.0.0
> I really expected to see loannet in the route output. This happens any
> time, ie if I am connected by ppp or not, named running or not.

i've seen the same thing on my system.  i think the /etc/networks file
doesn't work for subnets.  

try putting an entry in /etc/hosts instead:

199.233.164.32  loannet 

alternatively, if you are running the primary nameserver for
164.233.199.in-addr.arpa then you can put the entry into the DNS.

Craig

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]


Networking woes (Detailed & Long)

1996-11-05 Thread Walter L. Preuninger II
Well, I finally got the p166 up and running, including the 9GB ext2
filesystem I had problems with earlier, thanks to this list.

Now there are still 2 issues that I need to resolve, but there is not as
much urgency this time. The second issue will be in another mailing.

To see the problem, jump to the end of this message. I apoligize for the
length of this, but I felt that all this detail is needed for a
resolution.

My system has 2 network cards, a 3c503/16 and a 3c595 (in 10Mb mode).
The 503 has a network address of 199.233.164.2
The 595 has a network address of 199.233.164.33
I have the netmask set to 255.255.255.224, which should give me 32 hosts
per subnet, including network and broadcast.

The system boots fine. Both cards drivers are modules. There is no append
statement in lilo.conf

Here is what is in /etc/init.d/network:
#!  /bin/sh
ifconfig lo 127.0.0.1
route add -net 127.0.0.0
IPADDR=199.233.164.2
NETMASK=255.255.255.224
NETWORK=199.233.164.0
BROADCAST=199.233.164.31
GATEWAY=199.233.164.2
ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
route add -net ${NETWORK} netmask 255.255.255.224
route add default gw ${GATEWAY} metric 1
ifconfig eth1 199.233.164.33 netmask 255.255.255.224 broadcast 
 199.233.164.63
route add -net 199.233.164.32 netmask 255.255.255.224

All hosts are pingable from any other host, aix, sco, micom remote
terminal server, and win95.

Here is the output of ifconfig:
loLink encap:Local Loopback
  inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
  UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
  RX packets:410 errors:0 dropped:0 overruns:0
  TX packets:410 errors:0 dropped:0 overruns:0

eth0  Link encap:10Mbps Ethernet  HWaddr 00:20:AF:49:21:25
  inet addr:199.233.164.2  Bcast:199.233.164.31
   Mask:255.255.255.224
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:42 errors:0 dropped:0 overruns:0
  TX packets:164 errors:0 dropped:0 overruns:0
  Interrupt:5 Base address:0x300 Memory:dc000-de000

eth1  Link encap:10Mbps Ethernet  HWaddr 00:A0:24:56:D4:17
  inet addr:199.233.164.33  Bcast:199.233.164.63
   Mask:255.255.255.224
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:22 errors:0 dropped:0 overruns:0
  TX packets:15 errors:0 dropped:0 overruns:0
  Interrupt:12 Base address:0x6100

Here is the output of route:
Kernel IP routing table
Destination Gateway   Genmask Flags Metric Ref Use
Iface
localnet* 255.255.255.224 U 0  0 2 eth0
199.233.164.32  * 255.255.255.224 U 0  0 3 eth1
localhost   * 255.0.0.0   U 0  0 2 lo
default * 0.0.0.0 U 1  0 9 eth0


When I am not connected to the internet using ppp (207.86.80.129)
route will hang right after the localnet line. If I am connected to the
net, or if named is not running, route does its job and gets out of the
way. I do replace my default route when ppp comes up.

Question 1
   I think that is indicates a dns problem, but why? 199.233.164.33 is a
local address.

Question 2
   Why does 199.233.164.32 show up in the route output. I have an
/etc/networks file that looks like:
localnet199.233.164.0
loannet 199.233.164.32
localhost   127.0.0.0
I really expected to see loannet in the route output. This happens any
time, ie if I am connected by ppp or not, named running or not.

The linux box is serving as its own caching dns server.

I appreciate any thoughts you may have,

--
Walter L. Preuninger IIwaldo on #unix at irc.wasteland.org
[EMAIL PROTECTED]  

  L I N U X --- Where you will want to be!
--

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]