Avtoportreta VLAN interface on Solaris
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>
184.108.40.206 inet netmask ffffff80 broadcast 220.127.116.11 </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.
asked October 8th 19 at 03:21
as a variant — create a script in /etc/rc3.d/
Option with /etc/hostname.*** works kind just for physics
You have in /etc should be the file like /etc/hostname.bge129000 and also should be an entry in /etc/hosts
Find more questions by tags SolarisOperating systemsNetwork administration