How restart the network interface in AIX?


 
Thread Tools Search this Thread
Operating Systems AIX How restart the network interface in AIX?
# 1  
Old 06-03-2010
Java How restart the network interface in AIX?

Hi All,

Please let me know the command to restart the network interface and enable it on boot in AIX, similar to /etc/init.d/network restart in Redhat.


Thanks,
Sunil.K

Moderator's Comments:
Mod Comment please watch out to post in the right subforum!

Last edited by DukeNuke2; 06-03-2010 at 05:02 AM..
# 2  
Old 06-03-2010
Hi, you might wanna have a look to

Code:
more /etc/rc.net

rc.net - called by cfgmgr during 2nd boot phase.
Configures and starts TCP/IP interfaces.
Sets hostname, default gateway and static routes.
# 3  
Old 06-03-2010
Network config files

Thanks for the response.
What are the configuration for the updating IP and gateway..

Thanks,
Sunil.K
# 4  
Old 06-03-2010
If you are unsure best to set all the TCP/IP settings using smitty TCP/IP.

Iff you are changing the default gateway on the command line you will need to remove the old default gateway first before adding the new one.

To put an IP address on an interface:
Code:
chdev -l en6 -a netaddr=9.9.9.9 -a netmask=255.255.255.0 -a state=up


To add a route to the routing table:
Code:
chdev -l inet0 -a route=net,-hopcount,0,-netmask,255.255.255.0,-if,en5,,,,-static,9.9.8.0,9.9.9.1

To remove the same route from the routing table
Code:
chdev -l inet0 -a delroute=net,-hopcount,0,-netmask,255.255.255.0,-if,en5,,,,-static,9.9.8.0,9.9.9.1

You can see what the route table should be with:
Code:
lsattr -El inet0

# 5  
Old 06-04-2010
Hi,

Thanks for the response..I am actually looking for the files which stores IP and gateway related information ,like in RHEL below files holds the information about IP and gateway.

/etc/sysconfig/network ; config file holds the gateway and domain information
/etc/sysconfig/network-scripts/ifcfg-ethx ;config file holds the information about IP address .



Thanks,
Sunil.K
# 6  
Old 06-04-2010
AIX stores this IP information in the ODM. Using commands like
lsattr -El en0
lsattr -El inet0
this ODM information is displayed.

Lets say, you want to have normal linux-like files holding you're IP info, you have to change the bootup option under the device inet0

bootup_option no Use BSD-style Network Configuration True

regards,Randy
# 7  
Old 06-04-2010
Thanks for the help. Can you please tell the process of changing bootup option for network in detail????
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Debian

How do i correct restart network-services in Debian?

Hello, I would like to do follow steps. Set a static IP-Adress on eth0 (For Testing) Set DHCP on eth0 All steps should be done without a single reboot. /etc/network/interfaces iface eth0 inet static address 192.0.2.7/24 gateway 192.0.2.254How do i perform... (3 Replies)
Discussion started by: int3g3r
3 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. UNIX for Dummies Questions & Answers

Adding a network interface to a bonded interface

I have a RHEL 5 system with a bonded interface configure using only one network port (eth0). So I have config file for ifcfg-bond0 and ifcfg-eth. I'd like to configure eth5 to be the second SLAVE in the bond. My question is, after I modify ifcfg-eth5, can I add eth5 to the bond0 interface without... (1 Reply)
Discussion started by: westmoreland
1 Replies

4. 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

5. IP Networking

network interface -

Hello, Please, how can i create a network interface with a routable IP address on linux (ubuntu) ? AND How can i desactivate an interface? Thank you so much for help. (1 Reply)
Discussion started by: chercheur857
1 Replies

6. 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

7. 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 ..how ? Thanks (9 Replies)
Discussion started by: skamal4u
9 Replies

8. AIX

AIX platform: network interface list

Hi, I am trying to list all the interface present in the given system. Here is sample program. i.e. cat 1.c #include <sys/types.h> #include <sys/socket.h> #include <sys/ioctl.h> #include <sys/dlpi.h> #include <net/if.h> /*#include <sys/sockio.h>*/ #include <unistd.h> #include... (3 Replies)
Discussion started by: jgobbur
3 Replies

9. BSD

restart the network on freeBSD 7.2

hi howto restart the network with a wireless interface including wpa_supplicant on freeBSD 7.2 without reboot? (3 Replies)
Discussion started by: ccc
3 Replies

10. UNIX for Dummies Questions & Answers

Network Interface

Hi ! Does anyone know how can i get information about my network interface ... if it works in half or full duplex mode !! Thx in adivance ! Witt (4 Replies)
Discussion started by: witt
4 Replies
Login or Register to Ask a Question