Subject: Re: ex0 config
To: Petra Hofmann <petra_lynn@usa.net>
From: Brian Stark <bstark@siemens-psc.com>
List: netbsd-help
Date: 06/28/2000 14:36:11
On 28 Jun 2000, Petra Hofmann wrote:
> Please note that I have entered the following:
> ifconfig ex0 inet 10.10.1.5 netmask 255.255.255.0
> When I ifconfig ex0 I get the same msg as above but the last line then reads:
> inet 10.10.1.5 netmask 10.10.1.255
Hello Petra,
The "status:" line wasn't different? I think it should be...
Here is what I have on my system:
From dmesg:
ex0 at cardbus0 dev 0 function 0: 3Com 3c575B-TX Ethernet
ex0: interrupting at 9
ex0: MAC address 00:50:da:99:e6:ae
tqphy0 at ex0 phy 0: 78Q2120 10/100 media interface, rev. 11
tqphy0: 10baseT, 100baseTX, auto
From /etc/ifconfig.ex0:
inet 161.134.131.53 netmask 255.255.255.0
From /etc/mygate:
161.134.131.1
From ifconfig ex0:
ex0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
media: Ethernet autoselect (10baseT)
status: active
inet 161.134.131.53 netmask 0xffffff00 broadcast 161.134.131.255
inet6 fe80::250:daff:fe99:e6ae%ex0 prefixlen 64 scopeid 0x13
And as Rene Hexel's email already pointed out, you are using the default
gateway IP address for the network card, which is probably not what you
want.
Assuming that your machine is connected to a network that can access other
networks, you want to use the default gateway for your network as the
contents of the /etc/mygate file (or set this up through the /etc/rc.conf
files.
In my case, my IP address is 161.134.131.53 and sits on an internal
161.134.131.0 network. The router that sits on this network is using the
IP address 161.134.131.1, and that is what goes in my /etc/mygate file.
With this configuration my routing table looks like this:
palomino:bstark$ netstat -rn -f inet
Routing tables
Internet:
Destination Gateway Flags Refs Use Mtu
Interface
default 161.134.131.1 UGS 9 124349 1500 ex0
127 127.0.0.1 UGRS 0 0 32972 lo0
127.0.0.1 127.0.0.1 UH 1 108 32972 lo0
161.134.131/24 link#19 UC 0 0 1500 ex0
161.134.131.1 00:e0:a3:52:38:84 UHL 1 0 1500 ex0
161.134.131.53 00:50:da:99:e6:ae UHL 0 10 1500 lo0
161.134.131.55 00:10:5a:a3:be:e1 UHL 0 11 1500 ex0
palomino:bstark$
Hope this helps...
Brian
-------------------------------------------------------------------------
| Brian Stark | Internet : bstark@siemens-psc.com |
| Siemens PT&D, Inc. | Voice : +1 763 536-4697 |
| Power Systems Control Division | Fax : +1 763 536-4919 |
| 7225 Northland Drive, Brooklyn Park, Minnesota 55428 USA |
-------------------------------------------------------------------------