Network Ip

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Network Ip
# 1  
Old 05-28-2001
Question Network Ip

Hello again. Neo, thanks for your last reply.
I have a new question. How can I re-configure the host name and IP address information attached to my NIC? I remember seeing a command posted here that would cause the system to re-boot and require the information to be entered but I do not see it anymore.

Any help is appreciated.

# 2  
Old 05-29-2001
ifconfig will configure interface cards for you, depending on your flavour of UNIX. Generally the most simple syntax is:

ifconfig <interface name> <parameters_to_be_set> up/down

Run the man page on ifconfig, it's pretty simple. If you're running HP-UX the lanadmin and lanscan utilities are very useful for taking a look at interface cards on the system, and you will need to use them to obtain the Network Management ID number of the card to pass to the ifconfig command.

If not running HP-UX a man on ifconfig should provide you with all the information or pointers where you can get it.

Hope this helps.

# 3  
Old 05-29-2001
Sorry...I used a tag syntax in my last post which meant some of it got lost...the most simple ifconfig syntax is:

ifconfig [interface_name] [parameters_to_set] up/down

# 4  
Old 05-29-2001
ifcongig will work, but only until the box is rebooted. Then it will revert back. If you want to make the change permanant, you also need to edit the /etc/hosts & /etc/hostname.{interface} and possibly the /etc/nodename files under Solaris. The files are probably different under another flavor of UNIX. If you edit these files and reboot, you don't need to do the ifconfig command.
# 5  
Old 05-29-2001
If your machine is Linux:

Edit /etc/sysconfig/network. change local hostname.

ifconfig will work. but to make the change persistent you must edit /etc/sysconfig/network-scripts/ifcfg-eth0 (your interface).

Change the appropriate hostname aliases in /etc/hosts

To take effect, this settings you can restart networking using /etc/rc.d/init.d/network restart command.


# 6  
Old 05-29-2001
Apologies for not including details of how to make the changes permanent on HP-UX, overlooked that...

The files you need for the hostname, IP address, gateway and subnet mask on interface cards is located in /etc/rc.config.d/netconf.

This file will also contain details on the default gateway for the machine, and you can have as many entries for as many cards as are in the machine, simply increment the instance number by one.

# 7  
Old 05-29-2001
Thank you all for the replies. My machine is running Solaris 8. I will be working with your suggestions. Thanks again all.

Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. IP Networking

I would like to monitor network traffic for a computer on my network

My son does homework on a school laptop. I was thinking about setting up a gateway on my home network, so that I can monitor web traffic and know if he is doing his homework without standing over his shoulder. Ideally I would like to use the Raspberry Pi Model b that I already have. However, I... (15 Replies)
Discussion started by: gandolf989
15 Replies

2. Red Hat

Network becomes slow and return fast only after restart network

Hi, I have 2 machines in production environment: 1. redhat machine for application 2. DB machine (oracle) The application doing a lot of small read&writes from and to the DB machine. The problem is that after some few hours the network from the application to the DB becomes very slow and... (4 Replies)
Discussion started by: moshesa
4 Replies

3. Solaris

No network cable But Network interface is UP and Running

I've one Netra 240 After changing main board and system configuration card reader, Network is not accessible any more, Network interfaces are always UP and Running even when there is no cable connected to Network interfaces. I tried to restart and plumb/unplumb with no luck. ifconfig -a... (7 Replies)
Discussion started by: samer.odeh
7 Replies

4. UNIX and Linux Applications

Access to network interface (Mac-network)

Hi, I'm a italian student. For my thesis I develop a gateway with protocol 6lowpan. For that I must access to network interface to develope my personal stack based on standard 802.15.4. Can you help me? I need an explanation for that. (0 Replies)
Discussion started by: berny88
0 Replies

5. Solaris

configure zones to have different network interface and network

i need to configure a zone to use different interface (bge2) than global and have connected to completely different network switch & to use its own defaultrouter and hosts file .. is it possible ..if so ? Thanks (9 Replies)
Discussion started by: skamal4u
9 Replies

6. UNIX for Advanced & Expert Users

Network Shell Script & Blade Logic & Network Security

I am going to take up a position in Data & Network Security. I would need to write network shell scripts doing the following task: Going to around 2000 servers and findout which groups has access to each servers and which ids are there in each group that has access. I need to implement... (1 Reply)
Discussion started by: pinnacle
1 Replies

7. IP Networking

ssh server is attachable from local network not from another network

hello i have a ubuntu ssh server that i can acess from any of my comnputers but only if they are on the same wireless network as the server. i tested trhis my tehtehring my samsung blackjack to my windows partition and installing openssh to windows it works when windows is on the wireless but no... (1 Reply)
Discussion started by: old noob
1 Replies

8. Programming

Help in developing a Network Appliation to monitor pc in a network

I am developing a Network Appliation to monitor computers in a network. Specs are App monitors the current web page viewed in each system App also can shutdown the computer in the network App can show all process run by each computer in the network I am now confused how to start my... (2 Replies)
Discussion started by: valaparambil88
2 Replies
Login or Register to Ask a Question