Re: switch

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Robert Ambrose
Date:  
To: plug-discuss
Subject: Re: switch

The 'ip l' command will show all links. Show is the default. FWIW, I'd
use 'ip a' because address shows everything link shows plus the IP
address. You first network link is probably your loopback interface.

Ttys are not network interfaces per se. They are an interface to an RS
232 device. ppp0 would be the network interface for a network link
connected via a RS 232 device (modem).

On your switch issue: if you're trying to connect to a console port of
a switch, the cu command from the uucp package is the easiest. The
command 'cu -s 9600 -l /dev/tty0' (assuming you're using COM1 to connect
to your switch) should do the trick. If cu fails to connect due to
a permission problem, do a 'chmod 666 /dev/tty0'.

HTH, rna

On Mon, 3 Jan 2005, Mikey wrote:

> YOu know, I was thinking about what I've learned from the list over the past
> weeks about 'ip' and thought that it might be of some use with the topic at
> hand.
>
> First, lets test it on some known devices:
>
> bmike1@1[bmike1]$ ip link show eth0 (lucky guess thinking of eth0)
> 2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
>     link/ether 00:08:c7:ca:62:4b brd ff:ff:ff:ff:ff:ff
> bmike1@1[bmike1]$ ip link show ppp0
> 3: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP> mtu 1500 qdisc pfifo_fast qlen 3
>     link/ppp

>
> Ok. So then it works w/o sudo.
>
> Now, will it work on the serial ports:
>
> bmike1@1[bmike1]$ ip link show ttyS0
> Device "ttyS0" does not exist.
> bmike1@1[bmike1]$ ip link show ttyS1
> Device "ttyS1" does not exist.
>
> I guess not.
> But wait a second; eth0 appears to be device 2 and ppp0 device 3: so, what is
> device 1.
>
> bmike1@1[bmike1]$ ip link show 1
> Device "1" does not exist.
> bmike1@1[bmike1]$
>
> Anyone know what I should do? How do I see what device '1' is, could that be
> the switch? I don't think so because eth0 and ppp0 are all internal devices.
> But what does that mean. They could also be external devices. Know what I
> mean? I bet device 1 is the scsi controller
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>


---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss