Date: Thu, 13 Jul 2000 08:39:08 -0700 From: Carl Strickler <cstrickl@ifta.net> To: "'Edhi Nugroho'" <edhinug@stmik-stikubank.ac.id> Cc: "'freebsd-questions@freebsd.org'" <freebsd-questions@FreeBSD.ORG> Subject: RE: Changing NIC Configuration Message-ID: <01BFECA5.CFA94840.cstrickl@ifta.net>
next in thread | raw e-mail | index | archive | help
What is throwing me about this, and what threw me before was that I have searched in: /etc/rc.conf /etc/defaults/rc.conf /etc/host.conf /etc/hosts /etc/networks /etc/rc.network /etc/rc and /usr/src/sys/i386/conf/FIREWALL (the kernel I'm using) and there is NOTHING about my NICs. (?!) I've tried grepping for fxp and for ifconfig (and then finally for if) and it turns up nothing! Is there somewhere else that the person who origionally set up the system could have put the information about the NICs? And if so, how do I found out where it is? Thanks once again, Carl -----Original Message----- From: Edhi Nugroho [SMTP:edhinug@stmik-stikubank.ac.id] Sent: Thursday, July 13, 2000 2:02 AM To: Rafael A. Reta Rodriguez; Raymundo M. Vega Cc: Carl Strickler; 'freebsd-questions@freebsd.org' Subject: Re: Changing NIC Configuration Hi, Forgive me if someone has already gave you the clue.. heres how to change the IP address (presume that your NIC is works well ): 1. Open /etc/rc.conf 2. Looking a line looks like : if_ed0 = "inet xxxxx"; (depends on your NIC types) 3. change the ip address after inet.. you if we use ip address 192.168.0.9 before and then we change to 192.168.0.10, we should write : if_ed0 = "inet 192.168.0.10 netmask ...<your mask here>" 4. Reboot but if you change the NIC types (from NE2000 to 3Com 3C5x9 for example) you should do the following : 0. Make a note about your NIC devices (NE2000 --> ed0, 3C5X9 --> ep0.. etc) 1. Open /etc/rc.conf 2. change the line network_interfaces = "lo0 ep0" <-- list your NIC devices here.. 3. also change the line if_ed0 to if_ep0 . but if you just want to make a temporary changes, just do : 1. type ifconfig <your NIC device> inet <your ip address> mask <your netmask>, i.e: ifconfig ed0 inet 192.168.0.9 mask 255.255.255.0 and to see your NIC config : ifconfig -a HTH edhinug 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?01BFECA5.CFA94840.cstrickl>