Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 05 Jun 2004 03:41:28 +0000
From:      "JiaFu He" <jfhe@hotmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Network config on FreeBSD 5.1 - Help!
Message-ID:  <BAY9-F21S3ZEZ6lSu6f000147cd@hotmail.com>

next in thread | raw e-mail | index | archive | help

   As what have been pointed out, It may help if you comment out the
   lines in rc.conf as below:
   #ifconfig_vr0="inet6 hex address netmask 255.255.255.0"
   ipv6_enable="NO"
   #hostname= "..."
   #ppp_enable="YES"
   #ppp_mode="ddial"
   #ppp_nat="YES"
   #ppp_profile="bellnet.ca"
   sendmail_enable="YES"
   gateway_enable="YES"
   rpc_statd_enable="YES"
   tcp_extensions="YES"
   hostname="..."
   ifconfig_vr0="DHCP"

   Since your modem is taking care of the PPPoE stuff, you don't need
   "ppp" on your freebsd. Comment them out.

   Now as root, you can do the following:
   # /stand/sysinstall
   Then choose menu: "Configure" => "Networking" => "Interfaces" =>
   "vr0".
   Then select:
    "No" for IPV6 if you don't want IPV6;
   "Yes" for DHCP;
   "hostname.yourdomain.com" for host;
   "yourdomain.com" for domain;

   Upto this point, if your DHCP server (should be on the DSL modem which
   usually is bundled with a router) is working, you should have seen
   other information like "Gateway", "name server", "IPV4 address" and
   "netmask" shown on the screen. Simply press "OK". If no error message
   seen, your network MUST work now.

   You dont' even need to input the IP address, netmask, DNS server blah
   blah... The DHCP server will populate you with such information.

   To find out whether your DHCP server is on, get the IP addresses of
   your two XP machines by running "ipconfig" on a DoS prompt, which will
   tell you the IP address and gateway IP (also the DHCP server IP).

   The IP addresses of your two XPs should have the same subnet. i.e.,
   the first two or three bytes are often the same (like 192.168.0.x).

   Last, make sure your Ethernet cable is not broken and your modem and
   hub are powered on when you'r configuring. Check whether the lights on
   both the hub and freebsd machine is on. A reboot often helps too.

   Wish it helps.


   --- aussie gal <freebsder51 at yahoo.com> wrote:
   > This is the set-up:
   >
   > I have a High-Speed Internet connection. What you
   > would call a DSL modem connection.  I have the main
   > modem connection hooked up to a 4-port hub.  Two
   > ports are connected to WinXP boxes and the third one
   > is connected to my freebsd box into the ethernet
   > port supplied by the Asus motherboard (it has a
   > build-in RJ port).  I have the other two XP boxes up
   > and running but my freebsd box is (as you can see)
   > struggling.
   >
   > Longterm prospects:
   >
   > 1) After I can get freebsd networked, I would like
   > to eventually install some security and then take
   > over the world with a cluster of boxes designed by
   > top secret software.  <evil grin>
   >
   > 2) <grin> Just kidding.  I want to set up a s mall
   > network of computers running off of this freebsd
   > server, a mail server, and a half decent web server
   > with Perl/php/etc and maybe some other cook bells
   > and whistles.  But yes, I will probably want some
   > security via a firewall at some point as well.
   > Maybe sooner rather than later. But I first need to
   > pick-up the networking fundementals
   >
   > Btw, In the initial Sysinstall > Network
   > configuation dialogs I specified that I did not want
   > Ipv6 and that I wanted dchp.
   >
   > For the "network configuration" screen i filled in
   > the following:
   > Host:  host.name.com
   > domain: name.com
   > ipv4 gateway:  blank
   > Name server:  this is my isp's dns server's ip
   > address
   >
   > and for the "Configuration for Interface vr0" dialog
   > I write:
   > ipv4 address: Blank
   > Netmask: 255.255.255.0 < ;- I just changed this to
   > 255.255.0.0 as per your suggestion
   > extra options: blank
   >
   > I hope this helps.  Any thoughts on how to help me
   > find my IP address?
   >
   > Thanks for your suggestion.
   >
   > Regards,
   > Nav
   > zera holladay <zera_holladay at yahoo.com> wrote:
   > How do you connect (or want to connect) to your
   > network or to the internet? Do you have your own
   > private network and you connect through a gateway or
   > router, or do you have a DSL modem attached directly
   > to your ethernet card? You are not getting an IP
   > address and your netmask is for a very, very large
   > network. Networking is like cooking -- you have to
   > first decide what you want to cook with the
   > ingredients you have, then you have to get a recipe
   > and follow it.
   >
   > -zh
   >
   >
   > --- aussie gal wrote:
   > > Yeah - I have read it.
   > >
   > > when I do the ifconfig i get:
   > > vr0: flags=8843> MULTICAST> mtu 1500
   > > inet6 fe80::20e:a6ff:..[hexidecimal ipv6
   > > address]%vr0 prefixlen 64 scopid 0x1
   > > inet 0.0.0.0 netmask 0xff0000000 broadcast
   > > 255.255.255.255
   > > ether 00:0e:a6:.. [hexidecimal ipv4 address]
   > > media: Ethernet autoselect (10baseT/UTP)
   > > status: active
   > >
   > > The one thing that I noticed was that the example
   > on
   > > the website has all the addresses in
   > > non-hexcedecimal format and my output has them all
   > > in hex ipv6/4.
   > > Do I really need ipv6? If not, how do I get rid of
   > > it or does it matter?
   > >
   > > This poses a problem because I am suppose to
   > include
   > > my IP address as per the example on the website:
   > >
   > > ifconfig_dc0="inet 1 92.168.1.3 netmask
   > > 255.255.255.0"
   > > ifconfig_dc1="inet 10.0.0.1 netmask 255.255.255.0
   > > media 10baseT/UTP"
   > >
   > > BUT these addresses are not in hexidecimal whereas
   > > my inet #s are.
   > >
   > > Any ideas what is going on here?
   > >
   > > Btw, my rc.conf file includes the following:
   > >
   > > font8x14 ="NO"
   > > font8X16 = "NO"
   > > gateway_enable="YES"
   > > inetd_enable="YES"
   > > linux_enable="YES"
   > > moused_enable="YES"
   > > moused_port="/dev/psm0"
   > > moused_type="auto"
   > > nfs_client_enable="YES"
   > > nfs_server_enable="YES"
   > > rpcbind_enable="YES"
   > > saver="rain"
   > >
   > > scrnmap="NO"
   > > usbd_enable="YES"
   > > sendmail_enable="YES"
   > > #ifconfig_vr0="inet6 hex address netmask
   > > 255.255.255.0"
   > > #i pv6_enable="NO"
   > > hostname= "..."
   > > ppp_enable="YES"
   > > ppp_mode="ddial"
   > > ppp_nat="YES"
   > > ppp_profile="bellnet.ca"
   > > sendmail_enable="YES"
   > > gateway_enable="YES"
   > > rpc_statd_enable="YES"
   > > tcp_extensions="YES"
   > > hostname="..."
   > > ifconfig_vr0="DHCP"
   > >
   > >
   > > Thanks!
   > > fb51
   > >
   > >
   > > zera holladay wrote:
   > > Have you read this yet?
   > >
   > >
   >
   [1]http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/config-ne
   twork-setup.html
   > >
   > > -zh
   > >
   > > --- aussie gal wrote:
   > > > Hi - I'm trying to configure my network card on
   > a
   > > > newly installed freebsd 5.1.
   > > > BUT - I can get the system to come on line. It
   > > > recoginizes the hardware as being UP ...
   > > >
   > > > I've been hitting several TCP/IP how-tos on the
   > > web
   > > > and doing lots of reading and tweaking to no
   > > avail.
   > > >
   > > > Please advise. Does anyone have experience with
   > > > 5.1?
   > > >
   > > > Regards,
   > > >
   > > > fb51
   > > >
     _________________________________________________________________

   [2]Looking to buy a house? Get informed with the Home Buying Guide
   from MSN House & Home.

References

   1. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/config-network-setup.html
   2. http://g.msn.com/8HMBENUS/2746??PS=47575



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