Avtoportreta VLAN interface on Solaris

Hello, comrades.
Is the following scenario: on server Solaris configured with one physical interface bge0, and it works through VLAN-interface bge129000:

alex@solaris8:~$ dladm show-link<br> LINK CLASS MTU STATE BRIDGE OVER<br> bge0 phys 1500 up -- --<br> bge129000 vlan 1500 up -- bge0

In this configuration, the following interfaces:

bge0: flags=1004843<up,broadcast,running,multicast,dhcp,ipv4> mtu 1500 index 7<br> 172.29.29.37 inet netmask ffff0000 broadcast 172.29.255.255<br> bge129000: flags=201000843<up,broadcast,running,multicast,ipv4,cos> mtu 1500 index 6<br> 123.123.29.168 inet netmask ffffff80 broadcast 123.123.255.255 </up,broadcast,running,multicast,ipv4,cos></up,broadcast,running,multicast,dhcp,ipv4>

After a reboot bge0 returns to the up state, and bge129000 – in any. You have to do ifconfig and ifconfig plumb bge129000 bge129000 up manually.

I'd love to automate these actions so that when the OS automatically raised both interfaces, bge0 and DHCP bge129000 with a static IP. Please tell me how this can be achieved.

Thanks in advance for your answers.
October 8th 19 at 03:21
2 answers
October 8th 19 at 03:23
Solution
as a variant — create a script in /etc/rc3.d/
Option with /etc/hostname.*** works kind just for physics
got it, thanks - heber_Herman commented on October 8th 19 at 03:26
October 8th 19 at 03:25
You have in /etc should be the file like /etc/hostname.bge129000 and also should be an entry in /etc/hosts
about this content?

alex@solaris8:~$ cat /etc/hostname.bge129000<br> solaris8 netmask ffffff80 broadcast 123.123.255.255 up<br> alex@solaris8:~$ cat /etc/hosts<br> 123.123.29.168 solaris8 - heber_Herman commented on October 8th 19 at 03:28

Find more questions by tags SolarisOperating systemsNetwork administration