[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Change/delete IP adress in a Free BSD enviorment

Posted on 1997-11-03
7
Medium Priority
?
358 Views
Last Modified: 2013-12-23
Need instructions on how to find and remove any and all  exististing IP's and replace them with  a new one. This i mite add is for a UNIX dummy. (sometihing i won't be for long I hope)
0
Comment
Question by:rickstandal
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 

Author Comment

by:rickstandal
ID: 1582805
I'd like more information on your group

0
 
LVL 84

Expert Comment

by:ozo
ID: 1582806
look at /etc/hosts
what (or who's) group?
0
 
LVL 1

Accepted Solution

by:
Joshua111197 earned 100 total points
ID: 1582807
I'm not an expert but as far as I know, the etc/hosts translates names to IP-adresses of incoming useres. So, if you try the command "ping Joshua" on the server, the machine looks up the etc/hosts to translate "Joshua" into the IP-adress of this computer, e.g. 192.100.50.45. So the ping command can reach the computer "Joshua".

Now, which IP-adress would you change? The adress of the server or of a PC? Sorry, I don't know where you find the IP-adress of the UNIX-server, but I try to find out. The way, to change the IP-adress of a PC depends on the operating system you are using. But you have to change each PC one by one.

A way, to control the IP-adresses of your network is to use DHCP or BootP...

Please specify your question...
0
Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

 
LVL 1

Expert Comment

by:Joshua111197
ID: 1582808
At HP UX 10.2 the IP-adress of the station has to be changed in the file "etc/rc.config.d/netconf". Perhaps you can find something like this. I think it has to be a file in the etc/
0
 

Expert Comment

by:pvenezia
ID: 1582809
If you want to change the IP of a UNIX box (You didn't specify, so I'm going to submit a solution that should work on most) is first do a `ifconfig -a` this will show you all the physical interfaces, and their virtual (if any) IPs. If this doesn't work, then try `netstat -in`. The output is different, but the same result should be achieved. To remove the IP(s) from the interface, you'll need to run a command line like
`ifconfig ef0 remove 199.199.199.1` (if your interface is ef0, and the IP to remove is 199.199.199.1. Insert your interface and IP). This varies widely amongst different UNIX boxen. If you can update this with the version of UNIX you're using, I can be more specific.
To add an IP is the inverse of the above
`ifconfig ef0 add 199.199.199.1 netmask 255.255.255.0` (You may not need the netmask, but you will if the network you're on is a segmented Class C)

By all means, make sure you do this from the console, as removing the IPs will cause you to be disconnected if you're telnetting in.
0
 

Expert Comment

by:pvenezia
ID: 1582810
Sorry, I missed the subject of the message. The good thing is that the ifconfig statements should work with most versions of FreeBSD.
0
 

Expert Comment

by:pvenezia
ID: 1582811
Again, sorry for the triple comment :) but the above solution won't last if you reboot, it will work until then.

To make this permanent, edit the /etc/sysconfig file, looking for the line that resembles
ifconfig_ed0="199.199.199.1 netmask 255.255.255.224"

and change it to what you need.


0

Featured Post

Plesk WordPress Toolkit

Plesk's WordPress Toolkit allows server administrators, resellers and customers to manage their WordPress instances, enabling a variety of development workflows for WordPress admins of all skill levels, from beginners to pros.

See why 2/3 of Plesk servers use it.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Make the most of your online learning experience.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question