RE: Source Address Autoselection (Sort of Long)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I guess I don't understand.

Here are the interfaces again:

Eth0 - aaa.bbb.ccc.ddd (Valid IP Address)
Wan0 - 192.168.104.2 <--> ISP IF 192.168.104.1 <--> Internet

Packets originating from the machine with a non-local destination are
assigned the address from the Wan0 interface.

Forwarding is turned on and packets coming in the Eth0 interface go out the
Wan0 interface. This part works.

> 1. Configure it on loopback.

How would this work?

> 2. Or configure alias on Wan0 with address, which you desire to use
>    and route to internet through this alias.

I don't think this solves the problem that packets originating from that
host are assigned the address of the Wan0 interface.

> 3. Or set link scope on this address with
>    ip addr add <bad address> scope link dev Wan0
>    then it will be used only to communicate to provider.

I really don't understand this at all. How does one set the link scope?

> 4. Or... lots of ways, provided some fantasy applied. 8)
>
> Alexey

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux