Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Dec 1998 14:13:13 +0000
From:      roberto@net-one.it (Roberto Grassi)
To:        Roger Hall <RHall@esigroup.com>, freebsd-stable@FreeBSD.ORG
Subject:   Re: FW: Network help
Message-ID:  <199812311313.OAA07139@net-one.it>
In-Reply-To: Roger Hall <RHall@esigroup.com> 'FW: Network help' (Dec  4, 11:59am)

next in thread | previous in thread | raw e-mail | index | archive | help
On Dec 4, 11:59am, Roger Hall wrote:
> Subject: FW: Network help
> > In /stand/sysinstall I configured the network with an IP address of
> > 192.30.2.125 (which is an internal virtual lan), a gateway of
> > 205.218.124.1 and Name Server 205.218.124.2. The 205 addresses are
> > public internet address.
> > 
> > In /etc/rc.conf: 
> > network_interfaces="ep0 sl0 lp0"
> > ifconfig_ep0="inet 192.30.2.125 netmask 255.255.255.0"
> > ifconfig_sl0="inet 192.30.2.125 netmask 255.255.255.0"
> > ifconfig_sl0="inet 192.30.2.125 netmask 255.255.255.0" (that's right,
> > two sl's)
> > ifconfig_lo0="inet 192.30.2.125 netmask 255.255.255.0"
> > <further down>
> > defaultrouter="205.218.124.1"
> > 
> > But netstat -r is very short:
> > 
> > localhost	localhost
> > 192.30.2	link#2
> > 
> > I can ping any 192 address, but 205 is unreachable. Obviously there is
> > no route, but why, and how to fix? And isn't that route supposed to
> > say "192.30.2.0"?
> > 
> > When I try "route add default gw" as described on page 319 of the
> > complete Freebsd, I get:
> > 
> > route: bad address: gw
>-- End of excerpt from Roger Hall

I hope you have substituted the word "gw" with "205.218.124.1"
However I think that your machine on 192 network can't talk to 
205 network because the ip protocol doesn't permit it.
See at your address and netmask : they say that your network
is 192.30.2.0 and your boradcast address is 192.30.2.255 . Only
machine that have IP address from 192.30.2.1 to 192.30.2.254 can
talk between them. You need to configure an internetwork interface
to belong to 205 network and configure your machine as a gateway
On the other hand you can configure router as gateway or configure
router to do NAT (Network Address Translation) .

Regards
Roberto


-- 
Grassi Roberto                             NET1 S.r.l.
System & Network Administrator             via S.Cristoforo, 44
e-mail: roberto@net-one.it                 21047 Saronno (VA) - ITALY

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812311313.OAA07139>