A
A
appplemac2012-02-17 15:45:27
Solaris
appplemac, 2012-02-17 15:45:27

Auto-elevate VLAN interface on Solaris?

Hello comrades.
There is the following situation: one physical interface bge0 is configured on the Solaris server, and the bge129000 VLAN interface works through it:

[email protected]:~$ dladm show-link<br/>
LINK CLASS MTU STATE BRIDGE OVER<br/>
bge0 phys 1500 up -- --<br/>
bge129000 vlan 1500 up -- bge0

The interface configuration is as follows:
bge0: flags=1004843&lt;UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4&gt; mtu 1500 index 7<br/>
 inet 172.29.29.37 netmask ffff0000 broadcast 172.29.255.255<br/>
bge129000: flags=201000843&lt;UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS&gt; mtu 1500 index 6<br/>
 inet 123.123.29.168 netmask ffffff80 broadcast 123.123.255.255

After the reboot, bge0 returns to the up state, and bge129000 returns to none. You have to do ifconfig bge129000 plumb and ifconfig bge129000 up manually.
I would very much like to automate these actions - so that when the OS boots up, both interfaces automatically rise, bge0 via DHCP and bge129000 with a static IP. Please tell me how this can be achieved.
Thanks in advance for your replies.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AnViar, 2012-02-17
@appplemac

as a variant - create a script in /etc/rc3.d/
Option with /etc/hostname.*** seems to work only for physics

M
Maxim, 2012-02-17
@Maxim_ka

You should have a file in /etc like /etc/hostname.bge129000, and there should also be an entry in /etc/hosts

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question