SCIENTIFIC-LINUX-USERS Archives

July 2011

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Todd And Margo Chester <[log in to unmask]>
Reply To:
Todd And Margo Chester <[log in to unmask]>
Date:
Wed, 13 Jul 2011 11:08:28 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (79 lines)
On 07/12/2011 06:36 PM, Yasha Karant wrote:
> I attempted to add the virtual network interface you suggested with 
> simply the ifcfg-eth0.5 script you provided; however, the system would 
> not generate it.  I then found a reference to a command vconfig that I 
> used (please see below) that did work and created a eth0.5 after ifup 
> using your script.  However, this caused the machine not be visible on 
> the physical network -- netstat -r did not find default.  I tried 
> ping, etc.  A reboot with the ifcfg-eth0.5 script moved to my home 
> directory (so that it would not be used but not lost) resulted in a 
> working Internet connection, but no eth0.5 .
>
> Any further suggestion?
>
> Thanks,
>
> Yasha Karant
>
> [root@jb344 network-scripts]# vconfig add eth0 5
> WARNING:  Could not open /proc/net/vlan/config.  Maybe you need to 
> load the 8021q module, or maybe you are not using PROCFS??
> Added VLAN with VID == 5 to IF -:eth0:-
> [root@jb344 network-scripts]# ./ifup eth0.5
> [root@jb344 network-scripts]# ifconfig -a
> eth0      Link encap:Ethernet  HWaddr 6C:62:6D:B3:EB:04
>           inet addr:139.182.151.44  Bcast:139.182.255.255 
> Mask:255.255.255.0
>           inet6 addr: fe80::6e62:6dff:feb3:eb04/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:7740 errors:0 dropped:15 overruns:0 frame:0
>           TX packets:7745 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:5712610 (5.4 MiB)  TX bytes:1292931 (1.2 MiB)
>           Interrupt:50 Base address:0x6000
>
> eth0.5    Link encap:Ethernet  HWaddr 6C:62:6D:B3:EB:04
>           inet addr:192.168.254.10  Bcast:192.168.254.255 
> Mask:255.255.255.0
>           inet6 addr: fe80::6e62:6dff:feb3:eb04/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:79 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
>
>
> ifcfg-eth0.5
>
> DEVICE=eth0.5
> BOOTPROTO=none
> BROADCAST=192.168.254.255
> IPADDR=192.168.254.10
> NETMASK=255.255.255.0
> NETWORK=192.168.254.0
> GATEWAY=192.168.254.10
> ONBOOT=yes
> USERCTL=yes
> IPV6INIT=no
> PEERDNS=no
> PROMISC=yes
> # TYPE=Ethernet
> VLAN=YES
> NAME=vbox-bridged
>
>
>
>
>

Yasha,

This is the article I originally used to create my VLANs:
http://www.cyberciti.biz/tips/howto-configure-linux-virtual-local-area-network-vlan.html

I am not find anything I missed.  But, it is much better written
than my stuff, so it should be worth reviewing.  If you find something
I missed, please let me know.

-T

ATOM RSS1 RSS2