Date: Wed, 12 Aug 1998 11:23:56 -0700 From: randyk <randyk@com> To: freebsd-questions@FreeBSD.ORG Subject: A Network Question - ifconfig/netstat Message-ID: <19980812112356.59365@com>
next in thread | raw e-mail | index | archive | help
Hello,
netstat -in shows:
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
eth0 1500 <Link> 931977 0 1258421 0 0
eth0 1500 207.155.75.16 207.155.75.161 931977 0 1258421 0 0
eth1* 1500 <Link> 0 0 0 0 0
fxp0 1500 <Link> 00.a0.c9.de.86.13 1416142 3 1018410 0 252
fxp0 1500 209.48.66.128 209.48.66.148 1416142 3 1018410 0 252
fxp1 1500 <Link> 00.a0.c9.de.87.5f 303 0 443 0 0
fxp1 1500 216.0.20/23 216.0.20.1 303 0 443 0 0
lp0* 1500 <Link> 0 0 0 0 0
tun0* 1500 <Link> 0 0 0 0 0
sl0* 552 <Link> 0 0 0 0 0
ppp0* 1500 <Link> 0 0 0 0 0
lo0 16384 <Link> 59 0 59 0 0
lo0 16384 127 127.0.0.1 59 0 59 0 0
netstat -rn shows:
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 209.48.66.129 UGSc 5 1008048 fxp0
127.0.0.1 127.0.0.1 UH 0 24 lo0
207.155.75.128/27 207.155.75.162 UGSc 1 135637 eth0
207.155.75.161 127.0.0.1 UH 0 0 lo0
207.155.75.162 207.155.75.161 UH 2 269 eth0
209.48.66.128/26 link#3 UC 0 0
209.48.66.129 0:e0:b0:91:ca:20 UHLW 3 7 fxp0 18
209.48.66.148 0:a0:c9:de:86:13 UHLW 0 10 lo0
216.0.20.0 ff:ff:ff:ff:ff:ff UHLWb 0 2 fxp1 =>
216.0.20/23 link#4 UC 0 0
Above, address 207.155.75.161 has a gateway of 127.0.0.1. Is this right/wrong?
How did it happen? Here is my statement:
ifconfig eth0 207.155.75.161 207.155.75.162 netmask 255.255.255.224
route add -net 207.155.75.128 -netmask 255.255.255.224 207.155.75.162
A little more info.: eth0 is used to sub-divide 207.155.75.128/26 into 2 /27's.
One of the /27's (207.155.75.160/27) is used to pivot the other (207.155.75.128/27). There is a remote router (207.155.75.162) which has an ethernet port
(207.155.75.129) which feeds the rest of the LAN (207.155.75.130-158).
Please let me know if you think this is right/wrong and in what ways.
Thanx,
Randy Katz
PS - The reason I'm asking is there was some sort of glitch and when I reset
eth0 (ifconfig eth0 delete) and reissued the command (ifconfig
eth0 207.155.75.161 207.155.75.162 netmask 255.255.255.224) it came
back up...
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980812112356.59365>
