[Openswan Users] OpenWrt, inet: Unknown host

Marcus Carlson marcus at mejlamej.nu
Fri Mar 23 02:50:18 EDT 2007


Paul Wouters skrev:
> On Thu, 22 Mar 2007, Marcus Carlson wrote:
> 
>> I've been having some trouble with ipsec on one of my openwrt. I've got
>> an identical setup that is working flawless, but this one I just can't
>> get to work.
>>
>> I don't know if this is the right place to ask, but I hope someone could
>> point me in the right direction.
>>
>> The setup:
>> OpenWrt Whiterussian with openswan 2.4.6 (installed with ipkg).
>> ipsec.conf:
>> conn mytunnel
> 
>>          right=ip.of.ri.ght
>>          left=%defaultroute
> 
>> ipsec_setup: ifconfig: inet: Unknown host
> 
> that I've never seen before.

Could it be something with busybox and/or the scripts cut the wrong 
piece from ifconfig?

> 
>> 022 "mytunnel": We cannot identify ourselves with either end of this
>> connection.
> 
> Did you add interfaces="ipsec0=ppp0" ?
> I did not see a ppp device on your ifconfig line. Is your pptp/ppoe connection
> up? Perhaps you need a different interfaces= lines?

Not using ppoe, standard ethernet with static ip. I've tried setting 
interface to the different interfaces (br0, vlan1). Atm the interface 
line is remarked. Also when ifconfig -a I can see that the ipsec0 
interface has the same MAC address as vlan1 (which should be right, I think)

ipsec0    Link encap:Ethernet  HWaddr 00:18:F8:3C:07:CB
           NOARP  MTU:16260  Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:10
           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
....

vlan1     Link encap:Ethernet  HWaddr 00:18:F8:3C:07:CB
           inet addr:85.8.18.93  Bcast:85.8.18.255  Mask:255.255.255.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:151161 errors:0 dropped:0 overruns:0 frame:0
           TX packets:9828 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:5
           RX bytes:12318327 (11.7 MiB)  TX bytes:2802763 (2.6 MiB)

Thanks,
Marcus

> 
> Paul



More information about the Users mailing list