LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-18-2015, 02:08 PM   #1
johnnny
LQ Newbie
 
Registered: Feb 2015
Posts: 1

Rep: Reputation: Disabled
Correct configuration of VLAN for second network


I have a problem with setting up VLAN for correctly working internet connection through one cable. My ISP have Data and Video connection which are basically separated:
  • Data is used for normal internet activities such as browsing on web and local connection between computers
  • Video is used for IPTV and archived content of TV channels (timeshift)

If I connect my computer to data with one cable on one interface (eth0) the network is located on 192.168.1.0 /24. If I disconnect data cable and connect my computer to video with the same cable on same interface the network is located on 10.10.8.0 /22. In both cases there is running dhcp server and I get different DNS IPs as well. But the thing is that my ISP also provides trunk connection which split data connection to VLAN ID 0 and video connection to VLAN ID 100.

Here is some info about my network when connected only to Data port:

Code:
eth0      Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:XX  
          inet addr:192.168.1.12  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10015 errors:0 dropped:0 overruns:0 frame:0
          TX packets:270 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:10056386 (10.0 MB)  TX bytes:32561 (32.5 KB)
And also for network when connected only to Video port:

Code:
eth0      Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:XX  
          inet addr:10.10.10.29  Bcast:10.10.11.255  Mask:255.255.252.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8267 errors:0 dropped:0 overruns:0 frame:0
          TX packets:126 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:9754438 (9.7 MB)  TX bytes:14789 (14.7 KB)
Because I would like to access to both "types" of connection, I installed vlan package (I'm using Xubuntu 14.04) and tried to somehow connected both parts. So there is my config from /etc/network/interfaces:

Code:
auto lo
iface lo inet loopback

auto eth0 eth0.100

allow-hotplug eth0
iface eth0 inet dhcp
 mtu 1492

allow-hotplug eth0.100
iface eth0.100 inet static
 address 10.10.10.29
 netmask 255.255.252.0
 gateway 10.10.8.1
 dns-nameservers 10.240.93.5 10.240.93.6
 dns-search isp-domain.com
 vlan_raw_device eth0
 up route add -net 10.240.0.0 netmask 255.255.0.0 dev eth0.100
 up route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0.100
I'm using static configuration for eth0.100 because I can't get DHCP working for VLAN 100. Internet connection (eth0) is working without the problem and I get IP from DHCP server (192.168.1.12). The problem is with video connection (eth0.100) because I have static IP and I'm able to access multicast streams (IPTV), but I can't access to DNS (10.240.93.5 and 10.240.93.6). I need DNS because I only have links pointing to archive content (timeshift) and there are different domains which needs to be resolved. I also tried to enter IP instead of domain for content archive which I got previously when my computer was connected only to video, but the problem remains, I'm not able to watch anything from archive. If I try to lookup for IP from DNS server:

Code:
johnny@home:~$ nslookup
> server 10.240.93.5
Default server: 10.240.93.5
Address: 10.240.93.5#53
> nslookup archive.isp-domain.com
;; connection timed out; no servers could be reached
>
In the case above, archive.isp-domain.com is pointing to HTTP server where the content is stored. This domain is accessible only from local network 10.10.8.0 /22. If I ran the same lookup when I'm connected only to video port, I get back correct IP address which is pointing to content archive where I'm able to watch videos.

Because I know only the basics of networking and some theoretical part of VLANs, I don't know what could be wrong. I would really appreciate any help. Thanks!
 
  


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
How to find out correct NIC to configure for an IP or vlan. yashraj221087 Linux - Networking 3 02-15-2015 10:42 AM
home network configuration with DMZ and VLAN bruce.wayne Linux - Networking 7 12-24-2011 02:58 AM
VLAN configuration pfust Linux - Networking 2 08-26-2010 08:34 AM
VLAN configuration Satya Vani Linux - Software 1 03-18-2008 04:21 AM
VLAN configuration - native VLAN and setting PVID kumarwaiting Linux - Networking 0 07-24-2006 02:51 AM

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

All times are GMT -5. The time now is 03:17 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