Re: Need help on configuring a static internal IP address.

2003-03-26 Thread David Kelly
On Wed, Mar 26, 2003 at 05:54:12PM -0500, E. J. Cerejo wrote:
> 
> what's the diference between ifconfig_fxp0="inet 192.168.2.72/24" and 
> ifconfig_fxp0="inet 192.168.2.72  netmask 255.255.255.0"?

Its easier to type "/24" than 255.255.255.0. The /24 says "set first 24
bits of netmask." It doesn't work with ifconfig on older (~4.4) FreeBSD.
Anyway, after typing "ifconfig fxp0 192.168.2.72/24" you could follow
with "ifconfig fxp0" and see it reporting the netmask as 255.255.255.0.

For fun you could type "ifconfig fxp0 192.168.2.72/25" and your network
will still function but the netmask would be 255.255.255.128.

The netmask defines the address range which is directly accessible by
the NIC. Everything else has to be routed. "Hmm, 1.2.3.4 is outside of
my attached nets so I'll send it to my default router for relay and hope
it can find a way to deliver."

A subtile thing people miss sometimes is that their router(s) have to be
on a net within the netmasks of their NICs.

"netstat -rn" should be interesting reading.

-- 
David Kelly N4HHE, [EMAIL PROTECTED]
=
The human mind ordinarily operates at only ten percent of its
capacity -- the rest is overhead for the operating system.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Need help on configuring a static internal IP address.

2003-03-26 Thread Victor Bondarenko
> what's the diference between ifconfig_fxp0="inet 192.168.2.72/24" and 
> ifconfig_fxp0="inet 192.168.2.72  netmask 255.255.255.0"?

Two different ways of saying the same thing.  I believe the former is
CIDR notation.

Victor

-- 
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Need help on configuring a static internal IP address.

2003-03-26 Thread E. J. Cerejo
ifconfig_fxp0="inet 192.168.2.72/24"
defaultrouter="192.168.2.1"
Ok thanks.  I actually figured it out after I sent question but used 
/stand/sysinstall to cinfigure my network interface and ended up with 
these two settings in my rc.conf:

ifconfig_fxp0="inet 192.168.2.72  netmask 255.255.255.0"
defaultrouter="192.168.2.1"
what's the diference between ifconfig_fxp0="inet 192.168.2.72/24" and 
ifconfig_fxp0="inet 192.168.2.72  netmask 255.255.255.0"?

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Need help on configuring a static internal IP address.

2003-03-26 Thread David Kelly
On Wed, Mar 26, 2003 at 05:18:40PM -0500, Edinho wrote:
[...]
> I'm using FBSD4.8 stable, my belkin router uses 192.168.2.1, subnet mask 
> is 255.255.255.0 and the gateway is also 192.168.2.1.
> 
> Here's how my rc.conf looks like now:
> 
> hostname="ecerejo.Belkin"
> ifconfig_fxp0="inet 192.168.2.72"

Change ifconfig_fxp0 and add defaultrouter:

ifconfig_fxp0="inet 192.168.2.72/24"
defaultrouter="192.168.2.1"

Quickie without reboot, type this as root:

ifconfig fxp0 netmask 255.255.255.0
route add default 192.168.2.1

FYI: /etc/resolv.conf was written by dhclient for you. Otherwise you
would have to create it and list your upstream DNS serivce.

-- 
David Kelly N4HHE, [EMAIL PROTECTED]
=
The human mind ordinarily operates at only ten percent of its
capacity -- the rest is overhead for the operating system.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Need help on configuring a static internal IP address.

2003-03-26 Thread Victor B.
> ifconfig_fxp0="inet 192.168.2.72"

Try something like

ifconfig_fxp0="inet 192.168.2.72  netmask 255.255.255.0"
defaultrouter="192.168.2.1"  # ip of your router

Victor

-- 
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"