Re: ip alias command?

From: John Kaberna (jkaberna@xxxxxxxxxxxx)
Date: Fri Feb 23 2001 - 15:19:15 GMT-3


   
ip alias command is typically used when you what to make a shortcut for a
command. A lot of people will create an alias for 'show ip route' for
example so all they have to type is 's' Here is an example on my router
where I created an alias for the exec command show ip route. This way I
only have to type 's' to see show ip route.

sf-1700-vpn(config)#alias exec s show ip route
sf-1700-vpn(config)#^Z
sf-1700-vpn#s
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter
area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is 64.1.1.145 to network 0.0.0.0

     64.0.0.0/29 is subnetted, 1 subnets
C 64.1.1.144 is directly connected, FastEthernet0/0
     172.16.0.0/24 is subnetted, 1 subnets
C 172.16.0.0 is directly connected, Loopback0
     10.0.0.0/24 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, FastEthernet0/1
S* 0.0.0.0/0 [1/0] via 64.1.1.145

If you want to setup your terminal server so you only have to type R1 to
access your terminal server on line 2035 you would do the following. The IP
address should be the IP of your loopback on your terminal server.
Typically people use the loopback but you can use any active interface on
the router. But if you use an interface such as an Ethernet and that
interface goes down your reverse telnet won't work. So, its best to stick
with using a loopback.

ip host R1 2034 1.1.1.1

The part that is confusing is when you enter an ip host command you put the
terminal server's line number before the IP address. If you were to want to
telnet manually you would type 'telnet 1.1.1.1 2034'.

Hope this clears it up.

John

----- Original Message -----
From: Jennifer Joy <jjoy@tri.sbc.com>
To: <ccielab@groupstudy.com>
Sent: Friday, February 23, 2001 9:33 AM
Subject: ip alias command?

>
>
> I just ran across the "ip alias" command and am trying to
> understand it.
>
> Say I have a terminal server with ip address 10.10.10.1 /24
> and I want to use IP address 10.10.10.3 for port 2035.
>
> So I use "ip alias 10.10.10.3 2035"
>
> But when I try this I get "invalid IP address".
>
> I was using this doc for reference:
>
http://www.cisco.com/univercd/cc/td/doc/product/software/ssr83/tsc_r/54008.h
tm
>
> Does anyone have a working example of this?
>
> Thanks,
> Jennifer
>



This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:28:58 GMT-3