Avtoportreta VLAN interface on Solaris

0 like 0 dislike
6 views
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
LINK CLASS MTU STATE BRIDGE OVER
bge0 phys 1500 up -- --
bge129000 vlan 1500 up -- bge0


In this configuration, the following interfaces:

bge0: flags=1004843 mtu 1500 index 7
172.29.29.37 inet netmask ffff0000 broadcast 172.29.255.255
bge129000: flags=201000843 mtu 1500 index 6
123.123.29.168 inet netmask ffffff80 broadcast 123.123.255.255


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.
by | 6 views

2 Answers

0 like 0 dislike
as a variant — create a script in /etc/rc3.d/
Option with /etc/hostname.*** works kind just for physics
by
0 like 0 dislike
You have in /etc should be the file like /etc/hostname.bge129000 and also should be an entry in /etc/hosts
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
asked Mar 22, 2019 by evil_random
110,608 questions
257,186 answers
0 comments
28,707 users