Sponsored Content
Operating Systems Solaris Setting up static ip-adresses, Solaris 10 Post 302173340 by ggr on Thursday 6th of March 2008 11:44:26 AM
Old 03-06-2008
Hope this helps:

Code:
<root@agni-sol10> ifconfig hme0 plumb 
<root@agni-sol10> ifconfig hme0 
hme0: flags=1000802<BROADCAST,MULTICAST,IPv4> mtu 1500 index 3
        inet 0.0.0.0 netmask 0 
        ether 8:0:20:8f:42:f8 
<root@agni-sol10> ifconfig hme0:1 plumb 
<root@agni-sol10> ifconfig hme0:2 plumb 
<root@agni-sol10> ifconfig hme0:3 plumb 

<root@agni-sol10> for iii in hme0:1 hme0:2 hme0:3 hme0 
> do
> ifconfig $iii
> done
hme0:1: flags=1000802<BROADCAST,MULTICAST,IPv4> mtu 1500 index 3
        inet 0.0.0.0 netmask 0 
hme0:2: flags=1000802<BROADCAST,MULTICAST,IPv4> mtu 1500 index 3
        inet 0.0.0.0 netmask 0 
hme0:3: flags=1000802<BROADCAST,MULTICAST,IPv4> mtu 1500 index 3
        inet 0.0.0.0 netmask 0 
hme0: flags=1000802<BROADCAST,MULTICAST,IPv4> mtu 1500 index 3
        inet 0.0.0.0 netmask 0 
        ether 8:0:20:ee:42:f8 

<root@agni-sol10> ifconfig hme0:1 11.22.33.44 netmask + broadcast + up 
<root@agni-sol10> ifconfig hme0:2 11.22.33.55 netmask + broadcast + up
<root@agni-sol10> ifconfig hme0:3 11.22.33.66 netmask + broadcast + up
<root@agni-sol10> ifconfig hme0 11.22.33.100 netmask + broadcast + up

<root@agni-sol10> for iii in hme0:1 hme0:2 hme0:3 hme0 ^Jdo^Jifconfig $iii^Jdone
hme0:1: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 3
        inet 11.22.33.44 netmask ff000000 broadcast 11.255.255.255
hme0:2: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 3
        inet 11.22.33.55 netmask ff000000 broadcast 11.255.255.255
hme0:3: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 3
        inet 11.22.33.66 netmask ff000000 broadcast 11.255.255.255
hme0: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 3
        inet 11.22.33.100 netmask ff000000 broadcast 11.255.255.255
        ether 8:0:20:ee:42:f8

Of course you should make sure that you set this value in the eeprom.
local-mac-address?=true

-GGR
 

10 More Discussions You Might Find Interesting

1. Solaris

Basic Solaris static routing

Hi All, :(:confused: I have scoured the web and can't find this anywhere. What I am trying to do is set up a static route through an available gateway on a server, and then test connectivity through TELNET. I have done this on AIX (I already had this procedure). On AIX I would use SMIT. ... (7 Replies)
Discussion started by: jeffpas
7 Replies

2. IP Networking

I need HELP to Set up Coyote Linux router with 1 static IP & 64 internal static IP

hello, i need help on setting my coyote linux, i've working on this for last 5 days, can't get it to work. I've been posting this message to coyote forum, and other linux forum, but haven't get any answer yet. Hope someone here can help me...... please see my attached picture first. ... (0 Replies)
Discussion started by: dlwoaud
0 Replies

3. UNIX for Dummies Questions & Answers

Static IP address for solaris 10 virtual machine

Hi All I am having a solaris 10 virtual machine on vista (using vmware 7) laptop. Now i want to access virtual machine from vista using putty. Problem is that i insalled the solaris machine as dhcp. and whenever i connect to internet or reboot my system the IP address of solaris... (1 Reply)
Discussion started by: ankurk
1 Replies

4. Solaris

Solaris - Assign Static IP

Hi, I have cloned a SOLARIS 8 (BLADE 150) Hard Disk and have put into other system. So, now how do I configure the NIC and assign static IP for this new machine ? (8 Replies)
Discussion started by: angshuman_ag
8 Replies

5. Solaris

How to assign static ip address to the server having solaris 10. i.e. nge0

hi, how to assign static ip address to the server having solaris 10. assign static ip to nge0 which will sustain across reboots which will include all settings including gateway setting etc.. (2 Replies)
Discussion started by: pankajd
2 Replies

6. IP Networking

Trouble setting up a static IP on NetGear DGN1000

I have been trying to setup a static ip, however everytime I do so my internet disconnects and won't connect untill I switch back to dynamic. My router is a NetGear DGN1000 and I'm using it wired. Could anyone help? (0 Replies)
Discussion started by: zomigosh
0 Replies

7. Solaris

ILOM AND ALOM IP adresses

hi guys How to know ILOM and ALOM ip address. how to find the ilom alerts and alom alerts can one help out pls thanks, deepu. ---------- Post updated at 04:39 AM ---------- Previous update was at 04:38 AM ---------- (2 Replies)
Discussion started by: pradeepaasuri
2 Replies

8. Red Hat

Setting Up live FTP Server with Static IP in Red-Hat Linux 6

Hi Guys, I want to some guidance from you in setting up the Live FTP server in Redhat Linux 6 with Static IP 120.50.150.50. Now should I set my Static Public IP directly to my Linux machine? If so what whould be my sunbet mask? Is any type of natting required here? if so where would... (2 Replies)
Discussion started by: manalisharmabe
2 Replies

9. Solaris

Solaris 11 problem with static ip

I have installed Solaris 11.2 in VMware Player, networked in bridged mode. When Solaris uses DHCP everything is OK, I can reach internet, as well as other systems on my LAN. When I switch to static, I have connections to my LAN, but can not get to internet, the DNS resolution is somehow not... (2 Replies)
Discussion started by: migurus
2 Replies

10. Solaris

Solaris static IP changed (non DHCP)

We have 2 solaris 10 t5240 servers with static IP addresses on nxge0 I/F which were rebooted a few days back with a known good config that has been in place for years (for /etc/hosts, /etc/hostname.nxge0, /etc/netmasks, etc) They are not using dhcp. About the same time today, both of their... (7 Replies)
Discussion started by: hdatontodo
7 Replies
if_mpadm(1M)						  System Administration Commands					      if_mpadm(1M)

NAME
if_mpadm - change operational status of interfaces within a multipathing group SYNOPSIS
/usr/sbin/if_mpadm -d interface_name /usr/sbin/if_mpadm -r interface_name DESCRIPTION
Use the if_mpadm utility to change the operational status of interfaces that are part of an IP multipathing group. If the interface is operational, you can use if_mpadm -d to detach or off-line the interface. If the interface is off-lined, use if_mpadm -r to revert it to its original state. When a network interface is off-lined, all network access fails over to a different interface in the IP multipathing group. Any addresses that do not failover are brought down. Network access includes unicast, broadcast, and multicast for IPv4 and unicast and multicast for IPv6. Addresses marked with IFF_NOFAILOVER do not failover. They are marked down. After an interface is off-lined, the system will not use the interface for any outbound or inbound traffic, and the interface can be safely removed from the system without any loss of network access. The if_mpadm utility can be applied only to interfaces that are part of an IP multipathing group. OPTIONS
The if_mpadm utility supports the following options: -d interface_name Detach or off-line the interface specified by interface_name. -r interface_name Reattach or undo the previous detach or off-line operation on the interface specified by interface_name. Unless the -d option was used to detach or off-line the interface, this option will fail. EXAMPLES
Example 1: Detaching an Interface Use the following command to off-line or detach the interface. All network access will failover from hme0 to other interfaces in the same IP multipathing group. If no other interfaces are in the same group, the operation will fail. example% if_mpadm -d hme0 Example 2: Reattaching an Off-line Interface Use the following command to undo the previous operation. Network access will failback to hme0. example% if_mpdadm -r hme0 ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ |Interface Stability |Unstable | +-----------------------------+-----------------------------+ SEE ALSO
ifconfig(1M), in.mpathd(1M), attributes(5) DIAGNOSTICS
off-line failed as there is no other functional interface available in the multipathing group for failing over the network access. This message means that other interfaces in the group are failed over already or the multipathing configuration was not suitable for com- pleting a failover. off-line cannot be undone because multipathing configuration is not consistent across all the interfaces in the group. This message means that some interfaces in the IP multipathing group are not configured consistently with other interfaces in the group, for example, one of the interfaces in the group does not have an IFF_NOFAILOVER address. SunOS 5.10 3 Sep 2002 if_mpadm(1M)
All times are GMT -4. The time now is 01:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy