[rbak-nsp] Source interface for outgoing packets.

Denis Mikhaylovskiy denis.mikhaylovskiy at ericsson.com
Sat Apr 17 06:44:56 EDT 2010


Hi

Would this help ?

[local]se100(config-if)#ip source-address ?
  all                    Configure source-interface for all applications
  dhcp-server            Configure source-interface for dhcp server.
  flow-ip                Configure source-interface for rflow
  ftp                    Configure source-interface for ftp
  icmp-dest-unreachable  Configure source-interface for icmp-dest-unreachable
  icmp-time-exceed       Configure source-interface for icmp-time-exceed
  netop                  Configure source-interface for netop
  radius                 Configure source-interface for radius
  snmp                   Configure source-interface for snmp
  ssh                    Configure source-interface for ssh/sftp/scp
  syslog                 Configure source-interface for syslog
  tacacs+                Configure source-interface for tacacs+
  telnet                 Configure source-interface for telnet
  tftp                   Configure source-interface for tftp
  <cr>


/denis

-----Original Message-----
From: redback-nsp-bounces at puck.nether.net [mailto:redback-nsp-bounces at puck.nether.net] On Behalf Of Илья Савин
Sent: Saturday, April 17, 2010 2:27 PM
To: Christopher O'Shea
Cc: redback-nsp
Subject: Re: [rbak-nsp] Source interface for outgoing packets.

Hi Chris!

Ping is just an example. I want to select source IP for ALL oungoing
packets: RADIUS requests, ICMP replies for traceroute (TTL exceeded)
etc.

WBR,
Ilya Savin.



16 arp 2010 г. 18:37  Christopher O'Shea <casper.oshea at gmail.com> wrote:
> Hi,
>
> [local]Router#ping
> Target IP address:  ya.ru
> Repeat count [5]: 100
> ICMP datagram size [36]: 36
> Timeout in seconds [1]: 1
> Extended commands [n]: y
> Source IP address: 80.76.178.8
>
> But the source IP has to be an Interface (not sure if it limited to an
> interface in that context or not) but its worth a try.
>
>
> Chris O'Shea
>
>
>
>
> On Fri, Apr 16, 2010 at 2:07 PM, Илья Савин <savin at orn.ru> wrote:
>> Hi!
>>
>> How can I choose source interface for outgoing packets, which are
>> routed via other context?
>>
>> For example, config:
>>
>>
>> [homenet]Redback#sh conf int
>> Building configuration...
>>
>> Current configuration:
>> !
>> !
>> context homenet
>> !
>> interface _main loopback
>>  ip address 80.76.178.8/32
>> !
>> interface dhcp_int multibind
>>  ip address 188.116.128.1/18
>>  ip address 172.17.0.1/16 secondary
>>  dhcp server interface
>> !
>> interface to-qtech
>>  ip address 80.76.176.110/28
>>  ip access-group def in
>>  ip access-group def out
>> !
>> ! ** End Context **
>> !
>> end
>>
>> [homenet]Redback#sh conf static
>> Building configuration...
>>
>> Current configuration:
>> !
>> !
>> context homenet
>> !
>>  ip route 0.0.0.0/0 context bgp
>> !
>> ! ** End Context **
>> !
>> end
>>
>>
>> [homenet]Redback#ping ya.ru
>> PING ya.ru (213.180.204.8): source 80.76.176.110, 36 data bytes,
>>
>> Packets sent from IP 80.76.176.110, but i want to packets sent from IP
>> 80.76.178.8.
>>
>> WBR,
>> Ilya Savin.
>>
>> _______________________________________________
>> redback-nsp mailing list
>> redback-nsp at puck.nether.net
>> https://puck.nether.net/mailman/listinfo/redback-nsp
>>
>

_______________________________________________
redback-nsp mailing list
redback-nsp at puck.nether.net
https://puck.nether.net/mailman/listinfo/redback-nsp



More information about the redback-nsp mailing list