Yuri Slobodyanyuk Blog on Information Security 2024年09月12日
Configure VLAN Solaris way
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

介绍在Solaris中创建VLAN的步骤,包括确定物理连接点、计算VLAN接口名称、进行常规设置及验证等

🎯首先要决定物理连接点(PPA)的位置,需将VLAN连接到服务器上的某个物理接口,目前支持VLAN的接口类型有ce、bge、xge、e1000g等。通过特定公式计算新VLAN接口的全名,如创建VLAN 777并连接到物理接口e1000g0,得到的接口名为e1000g777000。

📝完成上述步骤后,进行常规的设置,如使用ifconfig命令进行plumb操作、分配IP并启动接口。以创建VLAN 777为例,需执行Solaris_star#ifconfig e1000g777000 plumb、Solaris_star#ifconfig e1000g777000 inet 10.11.11.2/24、Solaris_star#ifconfig e1000g777000 up等命令。

✅最后进行验证,可通过dladm show-link命令查看链接信息,确认VLAN是否创建成功。如文中所示,成功创建VLAN 777后,可看到相关信息显示。

To create VLAN in Solaris you have to first decide where the Physical Point of Attachment (PPA) will be. In other words you have to attach VLAN to some physical interface on the server , as of now interface types that support VLANs are:
- ce
- bge
- xge
- e1000g

After you decided on the PPA and the VLAN ID using this formula the whole name for the new VLAN interface is calculated:

VLAN int name = physical interface driver name + VLAN ID \*1000 + physical device instance

In my case creating vlan 777 attached to the physical interface e1000g0 yields this:

Int name = e1000g + 777*1000 + 0 = e1000g777000

Usual plumbing and IP assigning to do:

Solaris_star#ifconfig e1000g777000 plumbSolaris_star#ifconfig e1000g777000 inet 10.11.11.2/24Solaris_star#ifconfig e1000g777000 up

Verify:

Solaris_star#dladm show-link

e1000g0         type: non-vlan  mtu: 1500       device: e1000g0  1000g777000    type: vlan 777  mtu: 1500       device: e1000g0  e1000g1         type: non-vlan  mtu: 1500       device: e1000g1  e1000g2         type: non-vlan  mtu: 1500       device: e1000g2

Solaris_star# ifconfig e1000g777000

e1000g777000: flags=201000843 mtu 1500 index 4 inet 10.11.11.2 netmask ffffff00 broadcast 10.11.11.255 ether 0:c:29:67:98:e7

Follow me on https://www.linkedin.com/in/yurislobodyanyuk/ not to miss what I publish on Linkedin, Github, blog, and more.

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

Solaris VLAN 物理连接点 创建步骤
相关文章