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
sppptun(1M)						  System Administration Commands					       sppptun(1M)

NAME
sppptun - PPP tunneling driver utility SYNOPSIS
sppptun plumb sppptun plumb protocol device sppptun unplumb interface sppptun query DESCRIPTION
The sppptun utility is used to configure and query the Solaris PPP tunneling device driver, /dev/sppptun. Currently, only PPP over Ether- net (PPPoE) is supported, so the plumb and unplumb arguments are used to specify Ethernet interfaces that are to be used for PPPoE, and the query option lists the plumbed interfaces. The use of sppptun to add interfaces is similar to the use of ifconfig(1M) to add interfaces to IP. The plumbing is done once for each interface, preferably at system start-up time, and is not normally manipulated on a running system. If multiple instances of PPP are run over a single interface, they share the plumbing to that interface. Plumbing for each session is not required (and not possible for PPPoE). The proper way to plumb interfaces for PPPoE is to list the interfaces, one per line, in the /etc/ppp/pppoe.if file. USAGE
sppptun plumb When specified with no additional arguments, the plumb argument lists the protocols that are supported by the utility. These are the strings that are used as the protocol argument below. sppptun plumb protocol device This plumbs a new interface into the driver. The protocol parameter is pppoe for the PPP-carrying "Session Stage" connection or pppoed for the PPPoE "Discovery Stage" connection. Both connections must be present for each Ethernet interface that is to be used for PPPoE. The device parameter is the path name of the Ethernet interface to use (use ifconfig(1M) to list available devices). If the path begins with /dev/, then this portion may be omitted. sppptun unplumb interface This removes an existing interface from the driver and terminates any PPP sessions that were using the interface. The interface parame- ter is the name of the interface as reported when the interface was plumbed. sppptun query Displays the canonical names of all interfaces plumbed into the /dev/sppptun device driver. EXAMPLES
Example 1: Setting up to Use PPPoE on hme0 Plumb the hme0 interface. # sppptun plumb pppoed hme0 hme0:pppoed # sppptun plumb pppoe hme0 hme0:pppoe Remove the hme0 interface. # sppptun unplumb hme0:pppoed # sppptun unplumb hme0:pppoe Example 2: Script to Remove All Plumbed Interfaces #!/bin/sh for intf in `sppptun query` do sppptun unplumb $intf done EXIT STATUS
The following exit values are returned: 0 Successful completion. 1 One or more errors occurred. FILES
/etc/ppp/pppoe.if list of Ethernet interfaces to be plumbed at boot time /usr/sbin/sppptun executable command /dev/sppptun Solaris PPP tunneling device driver ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWpppdt | +-----------------------------+-----------------------------+ SEE ALSO
pppd(1M), pppoec(1M), pppoed(1M), sppptun(7M) RFC 2516, Method for Transmitting PPP Over Ethernet (PPPoE), Mamakos et al, February 1999 SunOS 5.10 19 Mar 2001 sppptun(1M)
All times are GMT -4. The time now is 03:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy