Unix Blog

Tuesday, September 1, 2009

Plumb / Unplumb IP addresses on Linux/Solaris

ifconfig eth0:1 {ip-address} netmask 255.255.255.0
ifconfig eth0:1 down

Try these commands too..
ifconfig eth0 10.0.0.1 broadcast 172.x.x.x netmask 255.255.255.0 up
ifdown eth0
ifup eth0

To have the interfaces to come up on reboot automatically,
/etc/sysconfig/network

create files ifcfg-eth0 or fcfg-eth0:1
A sample file

DEVICE=eth0
BOOTPROTO=static
BROADCAST=
HWADDR=
IPADDR=
NETMASK=
NETWORK=
ONBOOT=yes
TYPE=Ethernet

Solaris
/sbin/ifconfig {interface (e.g bge0:30}down unplumb

/sbin/ifconfig {interface} plumb
/sbin/ifconfig {interface} {ip_addr} netmask {netmask_addr} broadcast {broadcast_addr} up

/etc/hostname.{interface}

posted by Jayanthi Krishnamurthy @ 9:42 AM   1 Comments

1 Comments:

At July 5, 2019 at 11:46 AM , Anonymous Anonymous said...

I have perused your online journal it is exceptionally useful for me. I need to express profound gratitude to you. I have bookmark your site for future redesigns. show my ip

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home

Newer›  ‹Older

About Me

Name: Jayanthi Krishnamurthy

View my complete profile

Posts

  • Plumb / Unplumb IP addresses on Linux/Solaris

Older Posts Newer Posts

Archives

Subscribe to
Posts [Atom]