Greg Rundlett (freephile | 1 Sep 2009 16:41
Gravatar

Help connecting to two networks (Adding a virtual interface)

I need a little help with networking.  I'm running Ubuntu Jaunty Jackalope 09.04

I have a LAN that has 2 separate logical networks. I want to be able
to have my PC be on both networks so that I can SSH to an Asterisk
server on the second LAN.  The PC LAN is 192.168.5.1-255 and the VoIP
LAN is 192.168.2.1-255.

Both lans use the same physical network. Vlan tagging separates the traffic.

How do I configure my notebook to be on both networks? I'm currently
using wireless (not using my wired interface at all) making it easier
to got to get up and go into a conference room.  I assume I need to
add a virtual interface on my wireless card so that I can be on both.
What is the preferred method to add a virtual interface?

I use Network Manager Applet which doesn't seem to touch
/etc/network/interfaces, yet I've seen posts that describe putting
something like the following in /etc/network/interfaces

auto wlan0
iface wlan0 inet dhcp
    netmask 255.255.255.0
    network 192.168.5.0
    broadcast 192.168.5.255
    gateway 192.168.5.1

auto wlan0:1
iface wlan0:1 inet dhcp
    netmask 255.255.255.0
    network 192.168.2.0
(Continue reading)

Ben Scott | 1 Sep 2009 18:00
Picon

Re: Help connecting to two networks (Adding a virtual interface)

On Tue, Sep 1, 2009 at 10:41 AM, Greg Rundlett
(freephile)<greg@...> wrote:
> Vlan tagging separates the traffic.
> How do I configure my notebook to be on both networks?

  You need to tell the OS that you want it to recognize VLAN tags on
the interfaces.  You'll then get multiple interfaces of the form
"foo0.1", where 0 is the physical interface number and 1 is the VLAN
ID.  You can also still use "foo0" for untagged frames, if that's how
the network is configured.

  Note that is a dot (.) not a colon (:).  (Colons are used for
interface aliases, which is a way to do multiple IP addresses on one
physical interface, while maintaining the illusion of multiple
interfaces for programs which can't handle multiple IPs on a single
logical interface.  (You can do the same thing easier with multiple
"ip addr add dev foo0" invocations, but some software assumes
"interface == address".))

  The manual way to configure a VLAN interface is with the vconfig(8)
command.  For example:

	vconfig add eth0 42

will create the "eth0.42" VLAN interface.

  I don't know the way to configure VLANs with Debian/Ubuntu config automation.

  For Red Hat, you can create an "ifcfg-foo0.1" interface description
file, add "VLAN=yes", specify "DEVICE=foo0.1", and the rest happens
(Continue reading)

Greg Rundlett (freephile | 1 Sep 2009 19:02
Gravatar

Re: Help connecting to two networks (Adding a virtual interface)

On Tue, Sep 1, 2009 at 12:00 PM, Ben Scott<dragonhawk@...> wrote:
> On Tue, Sep 1, 2009 at 10:41 AM, Greg Rundlett
> (freephile)<greg@...> wrote:
>> Vlan tagging separates the traffic.
>> How do I configure my notebook to be on both networks?
>
>  You need to tell the OS that you want it to recognize VLAN tags on
> the interfaces.  You'll then get multiple interfaces of the form
> "foo0.1", where 0 is the physical interface number and 1 is the VLAN
> ID.  You can also still use "foo0" for untagged frames, if that's how
> the network is configured.
>
>  Note that is a dot (.) not a colon (:).  (Colons are used for
> interface aliases, which is a way to do multiple IP addresses on one
> physical interface, while maintaining the illusion of multiple
> interfaces for programs which can't handle multiple IPs on a single
> logical interface.  (You can do the same thing easier with multiple
> "ip addr add dev foo0" invocations, but some software assumes
> "interface == address".))
>
>  The manual way to configure a VLAN interface is with the vconfig(8)
> command.  For example:
>
>        vconfig add eth0 42
>
> will create the "eth0.42" VLAN interface.
>
>  I don't know the way to configure VLANs with Debian/Ubuntu config automation.
>
>  For Red Hat, you can create an "ifcfg-foo0.1" interface description
(Continue reading)

Bill McGonigle | 1 Sep 2009 21:45
Favicon
Gravatar

Re: Help connecting to two networks (Adding a virtual interface)

On 09/01/2009 10:41 AM, Greg Rundlett (freephile) wrote:
> Vlan tagging separates the traffic.
> 
> How do I configure my notebook to be on both networks? I'm currently
> using wireless

IIRC, many wireless AP's don't support 802.1q in 802.11.  You might get
away with multiple SSID's, if the hardware supports that, one for each
network.  I don't think the Network Manager GUI supports that, though.
Then there's hardware/driver support (a second USB NIC is an easy, but
ugly workaround).  You'd at least have to tag the WAP's ethernet port
with both VLAN's, or if it knows how to do VLAN's, just trunk it.

Even with 802.1q in 802.11 support I don't think you'll get any QoS on
the wireless side, so why not just dump all the traffic onto the
wireless un-tagged and then use a simple ethernet alias on the laptop?

-Bill

--

-- 
Bill McGonigle, Owner
BFC Computing, LLC
http://bfccomputing.com/
Telephone: +1.603.448.4440
Email, IM, VOIP: bill@...
VCard: http://bfccomputing.com/vcard/bill.vcf
Social networks: bill_mcgonigle/bill.mcgonigle
Bill McGonigle | 1 Sep 2009 21:54
Favicon
Gravatar

Re: Simple email list setup

On 09/01/2009 08:14 AM, Larry Cook wrote:
> If you'd be willing to give me an example rule for matching the From
> address and forwarding on that would be really helpful with my learning
> process.

the syntax is pretty arcane, but 'man procmailex' is really useful.

Something along the lines of:

  :0                                      # new rule
  * ^From:.*authorized-user <at> example\.com  # match your user's From
  * ^TO_.*fake-list-address <at> example\.com  # match TO, CC
  !real-list-address                      # forward, possibly local

  :0                                      # new rule (last didn't match)
  * ^TO_.*fake-list-address <at> example\.com  # to the list (but not authed)
  /dev/null                               # bitbucket (or autoresponder)

(strip out the comments, check the syntax, etc.)

-Bill

--

-- 
Bill McGonigle, Owner
BFC Computing, LLC
http://bfccomputing.com/
Telephone: +1.603.448.4440
Email, IM, VOIP: bill@...
VCard: http://bfccomputing.com/vcard/bill.vcf
Social networks: bill_mcgonigle/bill.mcgonigle
(Continue reading)

Bill McGonigle | 1 Sep 2009 22:09
Favicon
Gravatar

Re: Wifi <at> Nashua Library?

On 08/26/2009 04:53 PM, Neil Joseph Schelly wrote:
> I've been on public networks before where I can't get a DHCP response, while 
> Windows users don't have a problem.  I've never come up with a thorough 
> explanation and it's rare enough for me that I've never really investigated.

I have a vague recollection of one time having to ask dhcpcd to send a
certain option in the dhcp request to get a server to respond.  It was
basically just mimicking Windows, and nothing important - probably a bug
in the dhcp server (only tested against windows machines, perhaps).

-Bill

--

-- 
Bill McGonigle, Owner
BFC Computing, LLC
http://bfccomputing.com/
Telephone: +1.603.448.4440
Email, IM, VOIP: bill@...
VCard: http://bfccomputing.com/vcard/bill.vcf
Social networks: bill_mcgonigle/bill.mcgonigle
Ted Roche | 1 Sep 2009 22:47
Favicon
Gravatar

Fwd: Pearson Education User Group Program Newsletter -- September 2009

Some good deals and discounts. Note the 35% off Python books!

-------- Original Message -------- Subject: Date: From: Reply-To:
Pearson Education User Group Program Newsletter -- September 2009
Tue, 1 Sep 2009 16:26:10 -0400
InformIT User Groups <usergroups-bJzBLHNCuvtWk0Htik3J/w@public.gmane.org>
InformIT User Groups <usergroups-bJzBLHNCuvtWk0Htik3J/w@public.gmane.org>



Pearson Education User Group Program Newsletter Issue 20 -- September 2009 Thank you for reading the Pearson Education User Group Program monthly newsletter for official group members. Please pass this along to your colleagues and share our news and offers. == QUICK LINKS == * Monthly User Group Contest: http://www.informit.com/usergroupwelcome * InformIT Product Review Team: http://www.informit.com/productreviewteam * InformIT Store: http://www.informit.com/store * OnPodcast Network: http://www.informit.com/podcasts/index.aspx * Twitter and Facebook: http://www.informit.com/socialconnect == NEWS & ANNOUNCEMENTS == Head "Back to School" for an IT Certification Hit the books to take the next step in your career -- enter to win one of three certification study prize packs from the Pearson Education User Group Program! Also check out new learning tools and products from Pearson. http://www.informit.com/promotions/promotion.aspx?promo=137194 Green Data Center Titles Released From Pearson Cisco Press and Prentice Hall recently announced the release of two new Green Data Center titles -- "Grow a Greener Data Center," by Douglas Alger, and "Foundations of Green IT," by Marty Poniatowski -- focusing on energy efficiency, eco-friendliness and the necessary improvements to maximize savings in the IT industry. Alger: http://www.informit.com/store/product.aspx?isbn=1587058138 Poniatowski: http://www.informit.com/store/product.aspx?isbn=0137043759 Read the full press release and access exclusive chapter excerpts at http://bit.ly/HJevZ. == FEATURED ROUGH CUT == Get Behind the Scenes to stay Ahead of the Curve http://www.informit.com/roughcuts The D Programming Language by Andrei Alexandrescu http://my.safaribooksonline.com/9780321659538?portal=informit Suggested Retail Price: $54.99 Online, PDF, and Print Book Bundle: $74.23 Online and PDF Access: $38.49 Print Book Pre-Order: $38.49 You don't have to be a Safari subscriber to buy Rough Cuts and save. ----------------------------------------------------------------- == FEATURED VIDEO == 3+ Hours Free Video Training for Web Developers Sharpen your web development skills with instant access to full-length video labs from selected titles in the LiveLessons series. http://www.informit.com/promotions/promotion.aspx?promo=137059 Save an extra 40% when you buy eligible Web Development Video Training titles! See the list of participating titles, and enter coupon code LEARNVIDEO during checkout to receive your discount. http://www.informit.com/promotions/promotion.aspx?promo=137055 ----------------------------------------------------------------- == USER GROUPS OF THE MONTH == Florida: Tampa Bay Area ASP.NET MVC Developers is a monthly developer group in Tampa, Florida focusing on building skill and confidence at developing web applications using the ASP.NET MVC Framework. Learn more at http://www.tampadev.org Ohio: North East Ohio Cisco Users Group is comprised of technicians, experts, network administrators and engineers in the greater Cleveland, Ohio area. Members have a passion for learning and executing technologies based around the Cisco principles of networking, IP telephony, Telepresence, firewalls, switches, and routers. Learn more at http://neociscoug.blogspot.com ----------------------------------------------------------------- == USER GROUP OFFERS == http://www.informit.com/usergroupwelcome Early Bird Pricing Ends Sept. 12 for VTM: iPhone Developers Conference Use the special User Group Priority Code PHNABCD to save $100 off the Early Bird Conference Price Early Bird Price until Sept. 12: $495 Regular Price after Sept. 12: $695 With User Group Priority Code: $395 Mark your calendar now for October 17-18 in Boston! Learn more about featured speakers at http://www.voicesthatmatter.com/iPhone2009/speakers.aspx. Listen to interviews with featured conference speakers: Lee Barney -- Benefits of hybrid apps http://www.voicesthatmatter.com/content/downloads/iphone2009/Barney_Feature.mp3 Frameworks and libraries for building hybrid apps http://www.voicesthatmatter.com/content/downloads/iphone2009/Barney_Technical.mp3 August Trometer -- Optimizing your web site for the iPhone http://www.voicesthatmatter.com/content/downloads/iphone2009/Trometer_part1.mp3 Using UINavigationController http://www.voicesthatmatter.com/content/downloads/iphone2009/Trometer_part2.mp3 ----------- Save 35% on Python eBooks Python is a powerful programming language that can be used on all types of software and web development -- no matter your level of experience. For a limited time, save 35% on Python eBooks and video when you buy from InformIT. See the list of eligible titles and enter the coupon code PYTHONEBOOK during checkout to receive your discount. http://www.informit.com/promotions/promotion.aspx?promo=137138 ----------- Get Our Product Widget Want to promote your favorite book, eBook, or video to your colleagues and friends? Now you can quickly add InformIT, Amazon, Barnes & Noble, Borders, and Safari Books Online links to your sites without managing multiple links. Our Product Widget lets you feature up to five products, and it's easy to create and easy to install. Just copy the widget code we provide and paste it on any blog or Web page that supports JavaScript. Create your widget today at http://www.informit.com/widget. ----------------------------------------------------------------- == IN THE STORE == Building Service-Aware Networks: The Next-Generation WAN/MAN By Muhammad Afaq Khan http://www.informit.com/store/product.aspx?isbn=1587057883 Citizen Engineer By David Douglas http://www.informit.com/store/product.aspx?isbn=0137143923 Cocoa Design Patterns By Erik M. Buck, Donald A. Yacktman http://www.informit.com/store/product.aspx?isbn=0321535022 CompTIA A+ Certification Guide By Mark Edward Soper, Scott Mueller, David L. Prowse http://www.informit.com/store/product.aspx?isbn=0789740478 Essential Silverlight 3 By Ashraf Michail http://www.informit.com/store/product.aspx?isbn=0321554167 I/O Consolidation in the Data Center By Silvano Gai, Claudio DeSanti http://www.informit.com/store/product.aspx?isbn=158705888X Microsoft Windows 7 on Demand By Steve Johnson http://www.informit.com/store/product.aspx?isbn=0789742012 Sams Teach Yourself JavaScript and Ajax: Video Learning Starter Kit Bundle By Sams Publishing http://www.informit.com/store/product.aspx?isbn=0672330903 Be sure you're logged in when shopping and have entered your membership code to receive your 35% discount! See all titles at http://www.informit.com/store. ----------------------------------------------------------------- == AUTHORS & EVENTS: SEPTEMBER == September 19 -- Atlanta LinuxFest http://atlantalinuxfest.org September 21-23 -- LinuxCon Portland 2009 http://events.linuxfoundation.org/events/linuxcon September 24 -- Safari Books Online: Grow a Greener Data Center Webcast http://www.safaribooksonline.com/events/greenerdatacenter.html Cisco Press author Doug Alger makes the business case for greening data centers, and presents technologies, design strategies and operational approaches to help any company improve the energy efficiency and "eco-friendliness" of their IT facilities. September 25-27 -- Ohio LinuxFest 2009 http://www.ohiolinux.org September 25-27 -- Virtual Worlds at Sun Microsystems Author Chat http://blogs.sun.com/vw/entry/next_author_chat_clara_shih Join _The Facebook Era_ author Clara Shih in the Sun Second Life Theatre to discuss the radical business transformation taking place and what sales, marketers, and professionals must do to thrive in social media. September 26 -- Houston TechFest http://houstontechfest.com Sponsored by the Microsoft .NET Development Series. Looking Ahead: October 4-9 -- JAOO 2009 http://jaoo.dk/aarhus-2009 Calling all European User Groups: Meet the Rock Stars of software development at this year's JAOO 2009! Rub elbows with Pearson authors speaking on the world's hottest Java, Ruby, .NET, Object-Oriented topics. Check out the all-star lineup at http://jaoo.dk/aarhus-2009/speakers. What is JAOO? It's a Developer's event held every year in Aarhus, Denmark. JAOO originally stood for "Java and Object-Oriented" and focused on Java-based technologies. Today it has evolved into a more in-depth conference with a wider set of content such as .NET and Ruby-based technologies along with a focus on the softer side of software development: process improvement, patterns, and enterprise architecture. ----------- Have a User Group event in your area? Let us know! E-mail any event details to usergroups-bJzBLHNCuvtWk0Htik3J/w@public.gmane.org for consideration in next month's newsletter. Please include "User Group Event" in the subject line. ----------------------------------------------------------------- == Questions? == Please contact usergroups-bJzBLHNCuvtWk0Htik3J/w@public.gmane.org and include your user group name, relevant topic area, and type of inquiry in the subject line (for example: "Southern California Cisco Users Group--Networking"). ----------------------------------------------------------------- == OnPodcasts from InformIT -- Now Available on iTunes == OnSecurity Video: http://www.itunes.com/podcast?id=257338614 Audio: http://www.itunes.com/podcast?id=257862312 OnOpenSource Video: http://www.itunes.com/podcast?id=263635056 Audio: http://www.itunes.com/podcast?id=263635862 OnMicrosoft Video: http://www.itunes.com/podcast?id=259884354 Audio: http://www.itunes.com/podcast?id=259884464 OnSoftware Video: http://www.itunes.com/podcast?id=257763157 Audio: http://www.itunes.com/podcast?id=257863029 OnNetworking Video: http://www.itunes.com/podcast?id=263631409 Audio: http://www.itunes.com/podcast?id=263631748 OnSOA Audio: http://www.itunes.com/podcast?id=278745478 OnBizTech Audio: http://www.itunes.com/podcast?id=278745192 OnCertification Audio: http://www.itunes.com/podcast?id=294622719 OnHome&Office Video: http://www.itunes.com/podcast?id=307161017 Que On Demand Video: http://www.itunes.com/podcast?id=307162372 Don't Have iTunes? Download It Here: http://www.apple.com/itunes/download/ ----------------------------------------------------------------- Did someone forward this to you? E-mail usergroups-bJzBLHNCuvtWk0Htik3J/w@public.gmane.org with your name, group name, group topic area, and e-mail address to subscribe. InformIT, 800 East 96th Street, Indianapolis, Indiana 46240 &copy; 2009 Pearson Education. All rights reserved. <a href="http://informit.us1.list-manage.com/unsubscribe?u=f8cf3995466e65cefc4e4f5b3&id=4e6097a137&e=GDp7RsjM2K&c=d3cd5ee8de">Unsubscribe</a>
_______________________________________________
gnhlug-discuss mailing list
gnhlug-discuss@...
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Ben Scott | 1 Sep 2009 23:37
Picon

Re: Simple email list setup

On Fri, Aug 28, 2009 at 8:56 AM, Larry Cook<lcook@...> wrote:
> I am looking for suggestions on setting up a simple announcement email
> list with about 50 static members (no self-subscribe/unsubscribe), of
> which only 4 members can send to the list.

  Okay, I've watched the suggestion traffic flow by, and since nobody
has come up with something really good, let me suggest GNU Mailman.
You're right, it is overkill for what you want, but on the other hand
it comes pre-configured with many distributions, and management is
wicked easy with the web UI.  Plus once you have it, you may find
other uses for it.

  Yell if you need help setting it up for the first time.  In most
distros, you only need a handful of commands, all of which are pretty
easy.  Typically it will be something like:

yum install mailman
mailman newlist mailman
mailman config_list -i /usr/share/mailman/data/sitelist.cfg mailman
mailman msitepass

  Then browse to <http://server.example.com/mailman/admin/mailman> to
subscribe yourself to the site-wide "mailman" list (used for system
notifications).

  Then browse to <http://server.example.com/mailman/create> to create
the list for your users.  Follow the prompts.  Done.

  I did it for GNHLUG's server not long ago, when I had to rebuild the
server after the disk crash, and it wasn't hard at all.

-- Ben
Ben Scott | 1 Sep 2009 23:49
Picon

Re: Help connecting to two networks (Adding a virtual interface)

On Tue, Sep 1, 2009 at 3:45 PM, Bill McGonigle<bill@...> wrote:
> IIRC, many wireless AP's don't support 802.1q in 802.11.

  Why would the AP care?  VLAN frames are just regular Ethernet
frames, but with a particular frame type that VLAN-aware nodes
recognize as the VLAN tag.  Equipment that isn't VLAN-aware should
just see it as an unknown frame type.  VLANs even eat up a few bytes
of the regular Ethernet MTU.

  (Note that I'm not arguing against the possibility or actuality.
I've learned that tech mfgs could screw up a one-man parade in a ghost
town.  But I'm still curious as to why/how.)

> Then there's hardware/driver support ...

  If we're talking strictly Linux, VLANs are implemented in the
generic link-layer, above the NIC drivers.  It's not like 'doze where
the NIC drivers are actually responsible for VLAN implementation.

> You'd at least have to tag the WAP's ethernet port
> with both VLAN's ...

  You could also run one VLAN tagged and the other untagged, if you
have existing stuff you don't want to mess with, but that stuff only
needs one VLAN.  For example, Windows clients.

> Even with 802.1q in 802.11 support I don't think you'll get any QoS on
> the wireless side ...

  Probably not with the typical SOHO stuff, i.e., LinkSys, NetGear,
etc.  I've heard of (but not looked into) "enterprise grade" WAPs
which can do QoS for VoIP applications.  I have no idea how well they
work myself, although I've heard others -- who weren't selling them,
AFAIK -- recommend them for the purpose.  YMMV, etc.

-- Ben
Thomas Charron | 2 Sep 2009 01:30
Picon

Re: Help connecting to two networks (Adding a virtual interface)

On Tue, Sep 1, 2009 at 1:02 PM, Greg Rundlett
(freephile)<greg@...> wrote:
> On Tue, Sep 1, 2009 at 12:00 PM, Ben Scott<dragonhawk@...> wrote:
>> On Tue, Sep 1, 2009 at 10:41 AM, Greg Rundlett
>> (freephile)<greg@...> wrote:
>>> Vlan tagging separates the traffic.
>>> How do I configure my notebook to be on both networks?
> I'm reading more on VLANs [1] and now have at least installed vconfig
> and enabled the 8021q kernel module [2] :-)
> This article [3] looks like what I'm after, so I'll have to study, and test

  Based on your initial example, did I read that right?  You want to
request 2 different DHCP based addresses from the same physical
network?

--

-- 
-- Thomas

Gmane