Setting up static ip-adresses, Solaris 10 | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Setting up static ip-adresses, Solaris 10

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-05-2008
empty empty is offline
Registered User
 
Join Date: Mar 2008
Last Activity: 28 September 2008, 8:17 PM EDT
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Setting up static ip-adresses, Solaris 10

Hello,

Iam having problems getting more then one ip to work here is my setup!

Hostname: nexus
NIC: e000g1

(example ips)
My ips 80.80.80.15 to 80.80.80.20
Defaultrouter 80.80.80.1

nameservers 80.80.80.100 and 80.80.80.200

How would i do this? Any help would be mutch appriciated! Since my english isnt native so please explain as friendly as possible

Best regards emtpy
Sponsored Links
    #2  
Old 03-05-2008
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is online now Forum Staff  
Soulman
 
Join Date: Jul 2006
Last Activity: 24 October 2014, 3:20 AM EDT
Location: Berlin, Germany
Posts: 5,414
Thanks: 55
Thanked 231 Times in 224 Posts
ok,
as friendly as possible:

go to:
System Administration Guide: IP Services
and read the manual... everything is very well explained. if you have specific problems, come back an we'll try to solve this.

good luck and have fun,
DN2
Sponsored Links
    #3  
Old 03-06-2008
empty empty is offline
Registered User
 
Join Date: Mar 2008
Last Activity: 28 September 2008, 8:17 PM EDT
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for the link, but i cant actually find anything about adding the ip-adresses.

I got everything working with dhcp and such, but I cant find how to add more static ip-adresses to my nic e000g1

/empty
    #4  
Old 03-06-2008
ggr ggr is offline
Registered User
 
Join Date: Jul 2007
Last Activity: 20 May 2013, 11:17 AM EDT
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #5  
Old 03-08-2008
empty empty is offline
Registered User
 
Join Date: Mar 2008
Last Activity: 28 September 2008, 8:17 PM EDT
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks,

How do i set the netmask the interfaces should use? All use the same.

Tried edit netmask file but dident work.

Thanks bigtime GGR
Sponsored Links
    #6  
Old 03-08-2008
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is online now Forum Staff  
Soulman
 
Join Date: Jul 2006
Last Activity: 24 October 2014, 3:20 AM EDT
Location: Berlin, Germany
Posts: 5,414
Thanks: 55
Thanked 231 Times in 224 Posts
Quote:
Originally Posted by empty View Post
Thanks,

How do i set the netmask the interfaces should use? All use the same.

Tried edit netmask file but dident work.

Thanks bigtime GGR
post the file... it should work, so maybe you've done something wrog...

# cat /etc/netmasks

and let's have a look,

DN2
Sponsored Links
    #7  
Old 03-09-2008
desertdenizen desertdenizen is offline
Registered User
 
Join Date: Mar 2008
Last Activity: 25 June 2014, 7:07 PM EDT
Location: Peoria, AZ
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
Setting up static ip-adresses, Solaris 10

Did not work how? Please provide us with the steps you used to edit the /etc/inet/netmasks file and the steps you used to put into effect the netmasks.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Setting Up live FTP Server with Static IP in Red-Hat Linux 6 manalisharmabe Red Hat 2 05-20-2012 11:25 AM
Trouble setting up a static IP on NetGear DGN1000 zomigosh IP Networking 0 01-29-2011 10:11 PM
Solaris - Assign Static IP angshuman_ag Solaris 8 05-12-2010 04:56 PM
Static IP address for solaris 10 virtual machine ankurk UNIX for Dummies Questions & Answers 1 03-16-2010 01:16 PM
Basic Solaris static routing jeffpas Solaris 7 03-27-2008 02:26 PM



All times are GMT -4. The time now is 03:47 AM.