PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > Virtual Networking Interface Problem
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

Virtual Networking Interface Problem

Réponse
 
LinkBack Outils de la discussion
Vieux 06/08/2007, 19h20   #1
Hal Vaughan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Virtual Networking Interface Problem

I've been working on a project with some Linksys routers. New routers
are set to use the IP address 192.168.1.1 and my network uses the
172.16.*.* address space. I've had this in my
workstation's /etc/network/interfaces file:

auto eth0
iface eth0 inet static
address 172.16.7.11
netmask 255.255.255.0
gateway 172.16.7.1

To access the Linksys routers when I first get them, I added this:

auto eth0:0
iface eth0:0 inet static
address 192.168.1.128
netmask 255.255.255.0
gateway 172.16.7.1

Then I restarted my network and I have eth0:0 with the address
192.168.1.128. Using route gives this (edited for space):

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
172.16.7.0 * 255.255.255.0 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 1000 0 0 eth0
default fw.loc.lan 0.0.0.0 UG 0 0 0 eth0
default fw.loc.lan 0.0.0.0 UG 0 0 0 eth0

(fw.loc.lan is the firewall between my LAN and the Internet.)

I don't see any reference to eht0:0 at all. I don't know if that
matters.

After restarting my network, I can't reach anything on the Internet.

Does it matter that route doesn't seem to see a difference between eth0
and eth0:0?

What do I need to do to be able to do this and not lose access to
domains on the other side of my gateway? Why does it change routing so
my computer doesn't work through the regular gateway I've set?

Thanks!

Hal


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 06/08/2007, 20h10   #2
Anson Gardner
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Virtual Networking Interface Problem

On Monday 06 August 2007 12:12, Hal Vaughan wrote:
> I've been working on a project with some Linksys routers. New routers
> are set to use the IP address 192.168.1.1 and my network uses the
> 172.16.*.* address space. I've had this in my
> workstation's /etc/network/interfaces file:
>
> auto eth0
> iface eth0 inet static
> address 172.16.7.11
> netmask 255.255.255.0
> gateway 172.16.7.1
>
> To access the Linksys routers when I first get them, I added this:
>
> auto eth0:0
> iface eth0:0 inet static
> address 192.168.1.128
> netmask 255.255.255.0
> gateway 172.16.7.1
>
> Then I restarted my network and I have eth0:0 with the address
> 192.168.1.128. Using route gives this (edited for space):
>
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 172.16.7.0 * 255.255.255.0 U 0 0 0 eth0
> 192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
> link-local * 255.255.0.0 U 1000 0 0 eth0
> default fw.loc.lan 0.0.0.0 UG 0 0 0 eth0
> default fw.loc.lan 0.0.0.0 UG 0 0 0 eth0
>
> (fw.loc.lan is the firewall between my LAN and the Internet.)
>
> I don't see any reference to eht0:0 at all. I don't know if that
> matters.
>
> After restarting my network, I can't reach anything on the Internet.
>
> Does it matter that route doesn't seem to see a difference between eth0
> and eth0:0?
>
> What do I need to do to be able to do this and not lose access to
> domains on the other side of my gateway? Why does it change routing so
> my computer doesn't work through the regular gateway I've set?
>
> Thanks!
>
> Hal


You don't need to specify the gateway for eth0:0.

I also needed to configure devices that had distinct ip address values by
default. I had a similar setup until recently when I switched to using ip
syntax instead of the 'old way.' Here's a sample of my interfaces file:

address 123.456.789.2
netmask 255.255.255.252
gateway 123.456.789.1
up ip addr add 10.1.250.15/24 brd 10.1.250.255 dev eth0 label eth0:0
up ip addr add 10.10.10.15/24 brd 10.10.10.255 dev eth0 label eth0:1

aptitude install iproute
man ip
See if something like that will work for you.

Regards,

Anson


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 06/08/2007, 20h20   #3
Hal Vaughan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Virtual Networking Interface Problem

On Monday 06 August 2007, Anson Gardner wrote:
> On Monday 06 August 2007 12:12, Hal Vaughan wrote:
> > I've been working on a project with some Linksys routers. New
> > routers are set to use the IP address 192.168.1.1 and my network
> > uses the 172.16.*.* address space. I've had this in my
> > workstation's /etc/network/interfaces file:
> >
> > auto eth0
> > iface eth0 inet static
> > address 172.16.7.11
> > netmask 255.255.255.0
> > gateway 172.16.7.1
> >
> > To access the Linksys routers when I first get them, I added this:
> >
> > auto eth0:0
> > iface eth0:0 inet static
> > address 192.168.1.128
> > netmask 255.255.255.0
> > gateway 172.16.7.1
> >
> > Then I restarted my network and I have eth0:0 with the address
> > 192.168.1.128. Using route gives this (edited for space):
> >
> > Kernel IP routing table
> > Destination Gateway Genmask Flags Metric Ref
> > Use Iface
> > 172.16.7.0 * 255.255.255.0 U 0 0 0
> > eth0 192.168.1.0 * 255.255.255.0 U 0 0
> > 0 eth0 link-local * 255.255.0.0 U 1000 0
> > 0 eth0 default fw.loc.lan 0.0.0.0 UG 0 0
> > 0 eth0 default fw.loc.lan 0.0.0.0 UG 0
> > 0 0 eth0
> >
> > (fw.loc.lan is the firewall between my LAN and the Internet.)
> >
> > I don't see any reference to eht0:0 at all. I don't know if that
> > matters.
> >
> > After restarting my network, I can't reach anything on the
> > Internet.
> >
> > Does it matter that route doesn't seem to see a difference between
> > eth0 and eth0:0?
> >
> > What do I need to do to be able to do this and not lose access to
> > domains on the other side of my gateway? Why does it change
> > routing so my computer doesn't work through the regular gateway
> > I've set?
> >
> > Thanks!
> >
> > Hal

>
> You don't need to specify the gateway for eth0:0.


Okay, took it out and it works just fine without it.

I had this working before, but couldn't remember the settings. I knew
it was something simple. I had other suggestions in private email from
well meaning people, but they were a lot of work. I wasn't about to go
through and change my entire network to a different range just for the
5 minutes it takes to log in to the router so I can change its address.
Even though I had searched and not found the answer, I was sure it was
only a minute or two of work if I knew what to do.

> I also needed to configure devices that had distinct ip address
> values by default. I had a similar setup until recently when I
> switched to using ip syntax instead of the 'old way.' Here's a sample
> of my interfaces file:
>
> address 123.456.789.2
> netmask 255.255.255.252
> gateway 123.456.789.1
> up ip addr add 10.1.250.15/24 brd 10.1.250.255 dev eth0 label eth0:0
> up ip addr add 10.10.10.15/24 brd 10.10.10.255 dev eth0 label eth0:1
>
> aptitude install iproute
> man ip
> See if something like that will work for you.


I will be looking into that, but it'll be later in the week before I
have time to try it.

Thanks!

Hal


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 03h44.


Édité par : vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11608 seconds with 11 queries