cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
281
Views
0
Helpful
1
Replies
Highlighted

port mapping

i have two router both connect by serial link R1 and R2

now what i want R2 recieve telnet on port 8000 not on port 23 from R1.Please tell me how can i do achive this

what i did

i configure ip port map

conf t

ip port-map telnet port 8000

it is not working

second q is when i debug telnet on r2

then i recieve this message

*Mar  1 01:29:44.583: Telnet98: 1 1 251 1

*Mar  1 01:29:44.587: TCP98: Telnet sent WILL ECHO (1)

*Mar  1 01:29:44.587: Telnet98: 2 2 251 3

*Mar  1 01:29:44.587: TCP98: Telnet sent WILL SUPPRESS-GA (3)

*Mar  1 01:29:44.587: Telnet98: 80000 80000 253 24

*Mar  1 01:29:44.587: TCP98: Telnet sent DO TTY-TYPE (24)

*Mar  1 01:29:44.587: Telnet98: 10000000 10000000 253 31

*Mar  1 01:29:44.587: TCP98: Telnet sent DO WINDOW-SIZE (31)

*Mar  1 01:29:44.603: TCP98: Telnet received WILL WINDOW-SIZE (31)

*Mar  1 01:29:44.603: TCP98: Telnet received WILL TTY-SPEED (32) (refused)

*Mar  1 01:29:44.607: TCP98: Telnet sent DONT TTY-SPEED (32)

*Mar  1 01:29:44.611: TCP98: Telnet received WILL TTY-TYPE (24)

*Mar  1 01:29:44.611: Telnet98: Sent SB 24 1

*Mar  1 01:29:44.615: TCP98: Telnet received WILL NEW-ENVIRON (39)

*Mar  1 01:29:44.619: TCP98: Telnet sent DONT NEW-ENVIRON (39) (unimplemented)

*Mar  1 01:29:44.623: TCP98: Telnet received DO ECHO (1)

*Mar  1 01:29:44.623: TCP98: Telnet received WILL SUPPRESS-GA (3)

*Mar  1 01:29:44.627: TCP98: Telnet sent DO SUPPRESS-GA (3)

*Mar  1 01:29:44.627: TCP98: Telnet received DO SUPPRESS-GA (3)

*Mar  1 01:29:44.627: Telnet98: recv SB NAWS 110 24

*Mar  1 01:29:44.647: Telnet98: recv SB 24 0 XTERM

*Mar  1 01:29:44.655: TCP98: Telnet received WILL ENVIRONMENT (36) (refused)

*Mar  1 01:29:44.659: TCP98: Telnet sent DONT ENVIRONMENT (36)

my q is how do i found that on which port telnet recieve query

thankyou

1 REPLY 1
Highlighted
Advisor

Hi,

apart from port 23, you can use port 3000( and additionally ports 5000,7000 and 10000) + rotary group number like this:

line vty 0 4

rotary 20

---> will listen on 3020,5020,7020 and 10020

rotary-group goes from 1 to 127.

you'll have to use an access-list to block port 23 because it will still listen to it.

to see the tcp port in listening state: show tcp brief all

Regards.

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.