[rbak-nsp] Source interface for outgoing packets.

David Freedman david.freedman at uk.clara.net
Sat Apr 17 06:31:50 EDT 2010


Have you tried the "ip source-address" command in the interface you are
interested in?

Dave.


On 17/04/2010 11:27, "Илья Савин" <savin at orn.ru> wrote:

> 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/redb
> ack-nsp



------------------------------------------------
David Freedman 
Group Network Engineering
Claranet Limited
http://www.clara.net





More information about the redback-nsp mailing list