LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-18-2016, 03:07 PM   #1
bladerunner87
LQ Newbie
 
Registered: Jul 2016
Posts: 1

Rep: Reputation: Disabled
Smile Multi VLAN


Hey Guys,

Have spent all day looking on the internet to no solution avaial. More of a Cisco person than Linux, apologies for my inexperience.

I have a Server with 2 Nic Cards, supporting 3 Vlans.

Nic 1 (ETH 0) supports VLAN 19
Nic 2 (eth 1) supports VLAN 60 and 4.

Vlan 60 appears to be working fine, however vlan 4 will not launch correctly. see ifconfig...

eth0 Link encap:Ethernet HWaddr 00:11:25:AA:A14
inet addr:172.19.0.3 Bcast:172.19.0.127 Mask:255.255.255.128
inet6 addr: fe80::211:25ff:feaa:a1d4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:462716 errors:0 dropped:0 overruns:0 frame:0
TX packets:267767 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:55094753 (52.5 MiB) TX bytes:50502593 (48.1 MiB)
Base address:0x2000 Memory:d0120000-d0140000

eth1 Link encap:Ethernet HWaddr 00:11:25:AA:A15
inet6 addr: fe80::211:25ff:feaa:a1d5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10879 errors:0 dropped:0 overruns:0 frame:0
TX packets:2291 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:907733 (886.4 KiB) TX bytes:152210 (148.6 KiB)
Base address:0x3400 Memory:d0240000-d0260000

eth1.60 Link encap:Ethernet HWaddr 00:11:25:AA:A15
inet6 addr: fe80::211:25ff:feaa:a1d5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10881 errors:0 dropped:0 overruns:0 frame:0
TX packets:186 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:668487 (652.8 KiB) TX bytes:14508 (14.1 KiB)

eth1:4 Link encap:Ethernet HWaddr 00:11:25:AA:A15
inet addr:192.168.30.33 Bcast:192.168.30.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Base address:0x3400 Memory:d0240000-d0260000

eth1:60 Link encap:Ethernet HWaddr 00:11:25:AA:A15
inet addr:172.19.60.233 Bcast:172.19.60.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Base address:0x3400 Memory:d0240000-d0260000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:13193 errors:0 dropped:0 overruns:0 frame:0
TX packets:13193 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1357543 (1.2 MiB) TX bytes:1357543 (1.2 MiB)

here is the ifcfg-eth1.4

# cat ifcfg-eth1.4

# Intel Corporation 82541GI/PI Gigabit Ethernet Controller
VLAN=yes
DEVICE=eth1:4
BOOTPROTO=static
BROADCAST=192.168.30.255
HWADDR=00:11:25:AA:A15
IPADDR=192.168.30.33
NETMASK=255.255.255.0
NETWORK=192.168.30.0
ONBOOT=yes


I'm admittedly confused by the difference between eth1:4 and eth1.4.

Please help me resolve this issue
 
Old 07-19-2016, 07:00 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,331

Rep: Reputation: Disabled
eth1.4 is a VLAN interface. Packets to/from this interface will go through eth1, using 802.1q VLAN tags.

eth1:4, on the other hand, is a simple alias and has nothing to do with VLANs. An "ethN.<something>" alias is just an old (and I believe, deprecated) way of adding multiple IP addresses to the same interface, similar to the "secondary" parameter on Cisco devices.

You need to use "<device>.<tag>" names for all VLAN devices on 802.1q trunks.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Getting Started with Multi-Node OpenStack RDO Havana + Gluster Backend + Neutron VLAN per Andr LXer Syndicated Linux News 0 12-28-2013 05:40 PM
LXer: Getting Started with Multi-Node OpenStack RDO Havana + Gluster Backend + Neutron VLAN LXer Syndicated Linux News 0 12-15-2013 05:21 AM
DHCP Config for VLAN's using 1NIC and non VLAN router. scottgutman Linux - Networking 1 07-22-2009 02:41 AM
VLAN configuration - native VLAN and setting PVID kumarwaiting Linux - Networking 0 07-24-2006 03:51 AM
FreeBSD - need help making vlan for multi-port trunk.. BrianK *BSD 1 06-13-2006 02:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration