• Contact Us
  • Home
  • About Us
  • News
    • Entertainment
    • Trending
  • IT
    • Code
    • Cloud
    • Linux
    • Splunk
  • Login
  • Register
Upgrade
CloudiBee
  • Contact Us
  • Home
  • About Us
  • News
    • Entertainment
    • Trending
  • IT
    • Code
    • Cloud
    • Linux
    • Splunk
No Result
View All Result
  • Contact Us
  • Home
  • About Us
  • News
    • Entertainment
    • Trending
  • IT
    • Code
    • Cloud
    • Linux
    • Splunk
No Result
View All Result
CloudiBee
No Result
View All Result
Home Linux

Linux VLAN configuration

cloudibee by cloudibee
December 1, 2007
in Linux
0
0
SHARES
85
VIEWS
Share on FacebookShare on Twitter

1. Connect the eth0 interface of your linux machine to the switch.
2. Remove the IP Address information on the eth0 interface

    # ifconfig eth0 0.0.0.0
    # ifconfig eth0 up

Table of Contents

  • You might also like
  • Linux Change Password Command: Change password expiry in Linux
  • Top Open Source Email Servers

You might also like

Linux Change Password Command: Change password expiry in Linux

April 7, 2021
Email Servers

Top Open Source Email Servers

September 7, 2021

3. Configure 2 VLANs on the eth0 interface using vconfig as follows (100,200 are the VLAN id’s). If the 8021q.o module is not loaded, the vconfig command (when invoked first time) will automatically load the module.

    # vconfig add eth0 100
    # vconfig add eth0 200   

4. Configure IP on the VLAN interfaces

    # ifconfig eth0.100 xxx.xxx.xxx.xxx netmask 255.255.252.0 up
    # ifconfig eth0.200 yyy.yyy.yyy.yyy netmask 255.255.255.0 up

5. Preserve the vlan configuration across reboots by adding it to configuration files. Create the appropriate ifcfg files for eth0, eth0.100 and eth0.200 in /etc/sysconfig/network-scripts/

    # cd /etc/sysconfig/network-scripts/
      
    Contents of ifcfg-eth0
        DEVICE=eth0
        ONBOOT=no
        TYPE=Ethernet
   
    Contents of  ifcfg-eth0.100
        DEVICE=eth0.100
        IPADDR=xxx.xxx.xxx.xxx
        NETMASK=255.255.252.0
        VLAN=yes
        ONBOOT=yes
        BOOTPROTO=none
   
    Contents of ifcfg-eth0.200
        DEVICE=eth0.200
        IPADDR=yyy.yyy.yyy.yyy
        NETMASK=255.255.0.0
        VLAN=yes
        ONBOOT=yes
        BOOTPROTO=none
       
    Update /etc/sysconfig/network file to make the GATEWAYDEV use the public vlan interface.
   
    Contents of /etc/sysconfig/network
        NETWORKING=yes
        HOSTNAME=un1xf00
        GATEWAY=xxx.xxx.xxx.1
        DOMAINNAME=dev.un1xf00.com
        GATEWAYDEV=eth0.100
       
       
6. The VLAN configuration on the server can be verified in the file /proc/net/vlan/config. Sample contents are shown below.
   
        VLAN Dev name    | VLAN ID
        Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD
        eth0.100       | 100  | eth0
        eth0.200       | 200  | eth0

Previous Post

Netapp tips : Disk firmware upgrade

Next Post

Netapp : disk zero spares

cloudibee

cloudibee

Related Posts

Linux

Linux Change Password Command: Change password expiry in Linux

by cloudibee
April 7, 2021
Email Servers
Linux

Top Open Source Email Servers

by cloudibee
September 7, 2021
Linux

How to Determine Redhat Versions Command

by cloudibee
May 27, 2022
Linux

How-to Linux List Processes in 3 Simple Commands

by cloudibee
May 27, 2022
Linux

What is Cron Job in Linux?

by cloudibee
May 27, 2022
Next Post

Netapp : disk zero spares

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Premium Content

Tips to Change Up Your Job

Making the Switch: 4 Tips to Change Up Your Job in 2022

May 27, 2022

NuvioFlex and nPBX from Nuvio

May 31, 2022

SSHFS

September 28, 2021

Browse by Category

  • Business
  • Cloud
  • Code
  • Entertainment
  • finance
  • Game
  • Health
  • IT
  • Lifestyle
  • Linux
  • Marketing
  • Misc
  • News
  • SEO
  • Services
  • Splunk
  • Sports
  • Tech
  • Technology
  • Tipes
  • Tips
  • Uncategorized

Browse by Tags

algorithm Apache Apache2 AWS Bash bash history Bind Blacklists Buffer C C++ CentOS Cerner chage Cloud Cloud Computing Cloud jobs Cloud Storage Cloud Suite Commands Compliance Cron job Debian Directory DMS DNS Docker Dovecot drop cache Email servers Enteprise Cloud Enterprise External FAT32 Format kernel Linux linux kernel Nirvanix passwd Sendmail SSH SSL Terminal Ubuntu

About CloudiBee

cloudibee logo


CloudiBee is an open-source for people who love technology. Here we will be sharing lots of technical information over the web so that a lot of people visit us and gain some knowledge. We are a completely open to all platform. We assure you that you can easily get any info and updated news about the tech world from us. Let's begin with us!

Hot Topic

Gift Flowers as a Token of Appreciation

by mindmingles
July 26, 2022
0
Flowers

Flowers are unquestionably the best gift to give to loved ones. It can express feelings that most people forget to...

Read more

Recent News

Business

5 tips to ensure that your movers are always on time.

July 21, 2022
Tips

Flake ice machine for all who want to grow

July 18, 2022
Technology

Launching Progressive Web Applications on App Stores in 2022

July 16, 2022

CloudiBee. © 2021. All Rights Reserved

No Result
View All Result
  • Contact Us
  • Home
  • About Us
  • News
    • Entertainment
    • Trending
  • IT
    • Code
    • Cloud
    • Linux
    • Splunk

CloudiBee. © 2021. All Rights Reserved

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms bellow to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In