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 :slight_smile:

Best regards emtpy

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

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

Hope this helps:

<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

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

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.

btw. /etc/netmasks is a link to /etc/inet/netmasks so there is no problem with the path :wink: