route command baffles me.

This is a discussion on route command baffles me. within the Linux Networking forums, part of the Linux Forums category; CptDondo <yan@NsOeSiPnAeMr.com> writes: > Jay G. Scott wrote: > > both physical interfaces are on the ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 03-27-2007
hemphill@hemphills.net
 
Posts: n/a
Default Re: route command baffles me.

CptDondo <yan@NsOeSiPnAeMr.com> writes:

> Jay G. Scott wrote:
> > both physical interfaces are on the motherboard. i was hoping there
> > would
> > be a way to have eth1 omitted from ifconfig -a output, since i only have a
> > text console at the moment and it would save me some typing and it would
> > be quicker to recognize that eth0 was set up as i wanted. i guessed,
> > wrongly, that there would be a way to do that. there isn't. i get it.
> > point made.
> >

>
> ifconfig eth0
>
> will dump all the info for eth0


Furthermore,

ifconfig

will dump the info for eth0 if it up and won't dump the info for eth1
if it is down.

Scott

--
Scott Hemphill hemphill@alumni.caltech.edu
"This isn't flying. This is falling, with style." -- Buzz Lightyear
Reply With Quote
  #12 (permalink)  
Old 03-27-2007
hemphill@hemphills.net
 
Posts: n/a
Default Re: route command baffles me.

Unruh <unruh-spam@physics.ubc.ca> writes:

> gl@csdsun1.arlut.utexas.edu (Jay G. Scott) writes:
>
> >In article <56qnkqF2aem2dU1@mid.individual.net>,
> >patrick <ptri.c.k@stratsrev.corn> wrote:
> >>In news:eu9592$7e6$1@ns3.arlut.utexas.edu,
> >>Jay G. Scott <gl@csdsun1.arlut.utexas.edu> wrote:
> >>
> >>> is there something equivalent to solaris' unplumb, so that
> >>> i can tell eth1 to drop dead? ie, w/o a reboot?
> >>
> >># /sbin/ifconfig eth1 down

>
> >when you do ifconfig -a under with eth1 down, it still shows
> >eth1. i want ifconfig -a to not show anything about eth1
> >at all. i've done down, and down doesn't do that.
> >if you unplumb on solaris, ifconfig -a won't mention it
> >at all.

>
> >>
> >>> i assume if i rename the ifup (or whatever it is) script
> >>> and reboot it'll go away.
> >>
> >>Gee, what's the opposite of up?

>
> >down.

>
> Excellent. And what might then be the command corresponding to ifup eth1?
>
> Note that under Linux, the system tries to assign eth when the device
> driver is loaded. So the best idea for you would be to also remove the
> device driver
> eg
> modprobe -r eth1


But you don't want to remove this module if it is the same one that
serves eth0.

Depending on what module that is, there may be arguments that can be
passed to the module to override the automatic probing of the hardware
done at boot time. So at boot time, you could have the driver
recognize only one interface.

Scott
--
Scott Hemphill hemphill@alumni.caltech.edu
"This isn't flying. This is falling, with style." -- Buzz Lightyear
Reply With Quote
  #13 (permalink)  
Old 03-27-2007
Jay G. Scott
 
Posts: n/a
Default Re: route command baffles me.

In article <130gji5j8eceh79@corp.supernews.com>,
CptDondo <yan@NsOeSiPnAeMr.com> wrote:
>Jay G. Scott wrote:
>>
>> both physical interfaces are on the motherboard. i was hoping there would
>> be a way to have eth1 omitted from ifconfig -a output, since i only have a
>> text console at the moment and it would save me some typing and it would
>> be quicker to recognize that eth0 was set up as i wanted. i guessed,
>> wrongly, that there would be a way to do that. there isn't. i get it.
>> point made.
>>

>
>ifconfig eth0
>
>will dump all the info for eth0



yeah, i know. and you told me ifconfig would show me just the active
interfaces. i assume that's correct; i haven't been able to try it yet.
thanks.
j.
--
Jay Scott 512-835-3553 gl@arlut.utexas.edu
Head of Sun Support, Sr. Operating Systems Specialist
Applied Research Labs, Computer Science Div. S224
University of Texas at Austin
Reply With Quote
  #14 (permalink)  
Old 03-27-2007
Unruh
 
Posts: n/a
Default Re: route command baffles me.

gl@csdsun1.arlut.utexas.edu (Jay G. Scott) writes:

>In article <130gh4pt9uifn6d@corp.supernews.com>,
>CptDondo <yan@NsOeSiPnAeMr.com> wrote:
>>Jay G. Scott wrote:
>>> In article <56qnkqF2aem2dU1@mid.individual.net>,
>>> patrick <ptri.c.k@stratsrev.corn> wrote:
>>>> In news:eu9592$7e6$1@ns3.arlut.utexas.edu,
>>>> Jay G. Scott <gl@csdsun1.arlut.utexas.edu> wrote:
>>>>
>>>>> is there something equivalent to solaris' unplumb, so that
>>>>> i can tell eth1 to drop dead? ie, w/o a reboot?
>>>> # /sbin/ifconfig eth1 down
>>>
>>> when you do ifconfig -a under with eth1 down, it still shows
>>> eth1. i want ifconfig -a to not show anything about eth1
>>> at all. i've done down, and down doesn't do that.
>>> if you unplumb on solaris, ifconfig -a won't mention it
>>> at all.

>>
>>Open box, remove card.... Or am I missing something? Why can't it
>>show up as an unconfigured interface if that's what it is?
>>
>>The only other way I can think of is to remove the kernel module driving
>>the card. But why do you need to do that?
>>
>>What is the goal of this exercise? Seems like you're trying to do
>>something "the solaris way" when this ain't solaris. Do it (whatever it
>>is) the linux way.
>>
>>What are you trying to achieve?


>both physical interfaces are on the motherboard. i was hoping there would
>be a way to have eth1 omitted from ifconfig -a output, since i only have a
>text console at the moment and it would save me some typing and it would
>be quicker to recognize that eth0 was set up as i wanted. i guessed,
>wrongly, that there would be a way to do that. there isn't. i get it.
>point made.


ifconfig eth0
will list only eth0
modprobe -r eth1
will remove the device driver for that ethernet card.
etc.
Ie, there are lots of waysto do things. What is it you want done?


Reply With Quote
  #15 (permalink)  
Old 03-27-2007
Paul Colquhoun
 
Posts: n/a
Default Re: route command baffles me.

On Mon, 26 Mar 2007 19:00:50 +0000 (UTC), Jay G. Scott <gl@csdsun1.arlut.utexas.edu> wrote:
|
| on solaris, i get along just fine. i set my default route
| and it works. for some reason things never go so smoothly
| for me on linux. my "test" linux box is working, but
| it's "completely ordinary."
|
| possibly my problem is that for the first time, i'm hooking
| ripped, the new machine, to an 802.1q trunk. the box has two PHYSICAL
| enets on it. for the moment, i only want to use eth0.
|
| is there something equivalent to solaris' unplumb, so that
| i can tell eth1 to drop dead? ie, w/o a reboot?
| i assume if i rename the ifup (or whatever it is) script
| and reboot it'll go away.
|
| i did
| vconfig add eth0 2
|
| now, if i want the machine to respond to 10.20.30.40
| well, frankly, what do i do? i read the man page for vconfig,
| ifconfig, web pages on 802.1q, and so on, but when i try to
| ping the gateway on 10.20 i always get destinatino host
| unreachable. what do i WANT my netstat -nr output to look like?
| i feel like i've tried all reasonable combinations, and same
| thing every time.
|
| just as a side point, there's always that 169.254.0.0 route,
| can one safely get rid of that? what's it for?
|
| sorry if i'm grumpy. i'm frustrated. this ought to be simple
| but i'm getting nowhere.


If there is no cable connected to the interface, then installing ifplugd
should let the boot process skip configuring that interface.

It certainly worked that way for me, with my 2 on-board interfaces.


--
Reverend Paul Colquhoun, ULC. http://andor.dropbear.id.au/~paulcol
Asking for technical help in newsgroups? Read this first:
http://catb.org/~esr/faqs/smart-questions.html#intro
Reply With Quote
  #16 (permalink)  
Old 03-27-2007
Chris Davies
 
Posts: n/a
Default Re: route command baffles me.

Jay G. Scott <gl@csdsun1.arlut.utexas.edu> wrote:
> is there something equivalent to solaris' unplumb, so that
> i can tell eth1 to drop dead? ie, w/o a reboot?


ifconfig eth1 down
ifconfig eth1 inet 0.0.0.0

Possibly in the other order (I can't remember)
Chris
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:47 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0