ted@NADC.ARPA (T. Calkins) (02/14/90)
We are having somewhat of a problem getting the UNIX(tm) 4.3BSD tables
setup correctly for an ethernet. Hopefully someone has seen this before
and can point the error(s).
We have an (unofficial) Class B address of 190.200. Using a DEC DELUA
card. First, setting the tables as follows:
/etc/hosts:
127.0.0.1 localhost
#
190.200.46.1 devvax1.arpa devvax1
190.200.35.1 sun386i
190.200.38.1 apollo1
190.200.1.2 NCS2
: :
/etc/networks:
local-net 190.200.46
loopback 127.0.0
: :
/etc/rc.local
hostname devvax1
:
ifconfig de0 inet `hostname` -trailers up netmask 255.255.255.0
ifconfig lo0 localhost
route add `hostname` localhost 0
:
Now then, the command "ifconfig de0" produces,
de0: flags=63<UP,BROADCAST,NOTRAILERS,RUNNING>
inet 190.200.46.1 netmask ffffff00 broadcast 190.200.46.255
And, the command "ifconfig lo0" produces,
lo0: flags=9<UP,LOOPBACK>
inet 127.0.0.1 netmask ff000000
The command "netstat -in", produces,
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Collis
de0 1500 190.200.46 190.200.46.1 253 0 13 0 0
lo0 1536 127 127.0.0.1 56 0 56 0 0
And, the command "netstat -rn", produces,
Routing tables
Destination Gateway Flags Refcnt Use Interface
190.200.46.1 127.0.0.1 UH 0 38 lo0
127.0.0.1 127.0.0.1 UH 0 18 lo0
190.200.46 190.200.46.1 U 2 9 de0
The kicker, with this setup, is that one can 'telnet localhost' ok,
but attempting to access the net via telnet produces
Trying...
telnet: connect: Network is unreachable
Now, if all that gets changed is the ifconfig statement in the /etc/
rc.local file, as follows,
/etc/rc.local
hostname devvax1
:
ifconfig de0 inet `hostname` -trailers up netmask 255.255.0.0
The command "ifconfig de0" produces
de0: flags=67<UP,BROADCAST,NOTRAILERS,RUNNING>
inet 190.200.46.1 netmask ffff0000 broadcast 190.200.255.255
And, the command "ifconfig lo0" produces,
lo0: flags=8<LOOPBACK>
THe command "netstat -in" produces,
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Collis
de0 1500 190.200 190.200.46.1 1134 0 736 0 0
lo0* 1536 none none 0 0 0 0 0
And the command "netstat -rn" produces,
Routing tables
Destination Gateway Flags Refcnt Use Interf
192 190.200.99.100 UG 0 0 De0
190.200 190.200.46.1 U 2 730 de0
193 190.200.99.100 UG 0 0 de0
Now, attempting 'telnet localhost' produces "localhost: unknown host"
and it is possible to access the hosts on the ethernet.
Any help, is of course, much appreciated.
(Have I omitted anything?)
Ted Calkins ( ted@NADC.NAVY.MIL )