Create Vlan for Interface for Ubuntu and Fedore
来源:互联网 发布:康熙王朝 雍正王朝知乎 编辑:程序博客网 时间:2024/05/21 17:13
Ubuntu Create interface for vlan 50
Here are the steps creating vlan in Ubuntu: (I will add it to testbed setup wiki page later).For example: eth2 is the interface with 192.168.0.X.
1. If vlan is not installed already: sudo apt-get install vlan
2. sudo modprobe 8021q
3. sudo vconfig add eth2 50
4. sudo ip addr add 172.16.10.200/24 dev eth2.50
To make the changes above permanent across reboot:
sudo su –c ‘echo “8021q” >> /etc/modules’
Add the lines below to /etc/network/interfaces:
auto eth2.50
iface eth2.50 inet static
address 172.16.10.200
netmask 255.255.255.0
vlan-raw-device eth2
Fedore Create interface for vlan 50
/ect/sysconfig/network-scripts
cp ifcfg-eth0 -> ifcfg-eth0.20
edit ifcfg-eth0:
# Networking Interface
DEVICE=eth1.20
HWADDR=00:25:64:95:44:53
ONBOOT=yes
BOOTPROTO=none
TYPE=Ethernet
USERCTL=no
IPV6INIT=yes
IPV6_AUTOCONF=no
IPV6ADDR=2020:DB8:20::251/64
PPERDNS=yes
NETMASK=255.255.255.0
IPADDR=192.168.20.251
GATEWAY=192.168.20.252
VLAN=yes
PREFIX=23
NAME="System eth1"
UUID=9c92fad9-6ecb-3e6c-eb4d-8a47c6f50c04
Some notes about vlan
1. Some network adapter chipset can't support sending traffic with vlan.
2. All windows system can't send traffic with vlan.
3. About virtual machine, for Ubuntu+Virtual Box need create eth0.50 and map to a new interface ,e,g eth1 to eth0.50, then eth1 is interface with vlan 50.
4. About virtual machine, for Windows+VMWare, only need to create vlan interface in fedore vm is ok.
- Create Vlan for Interface for Ubuntu and Fedore
- java jre 安装方法 FOR FEDORE
- Create desktop entry for ubuntu
- Explaination for Class, Abstract Class and Interface
- Install Android Composite ADB Interface driver for Windows 7 and Ubuntu Linux
- [Ubuntu] Create a launcher for an application
- libdvdcss2 and w32codecs for Ubuntu
- How to use java dbus to create an Java Interface for dbus interface
- Wine for Ubuntu and Ubuntu derivatives
- My Holder interface for bean and set management
- I2C tool for linux i2c interface read and write
- create encode function and decode function for using
- A good introduction for RCP and Create it quickly
- Create a SQL Server Database and User for vCenter Server
- week2th、 Generate SW package for Simulator and create simulator
- interface for java
- sys interface for mpu9250
- create table for db
- 黑马程序员-----网络编程
- cocos2dx3.2 版本windows7+VS2013下环境搭建
- ElasticSearch:堆大小与swap设置
- Socket用法详解<1>
- 【Unity】方块滚动代码
- Create Vlan for Interface for Ubuntu and Fedore
- linux集群系列(三):Solr全文搜索服务器部署(Solr-5.2.1)
- A + B Problem II
- CF 5B Center Alignment
- 正则语法
- Android中GridView中onTouch监听(1)item实现触摸执行缩放动画的功能
- 锚点对动画的影响
- WCF入门(一)——简单的示例
- 解决SSH自动断线问题