lkml.org 
[lkml]   [2003]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: How to configure an ethernet dev as PtP ?
Stephan von Krawczynski wrote:
> Hello all,
>
> I tried to configure an ethernet device as a pointopoint link recently, just to
> find out that this does not work as one would expect via:
>
> ifconfig eth0 192.168.1.1 pointopoint 192.168.5.1 up

How about:

/sbin/ip ad ad 192.168.1.1 peer 192.168.5.1 dev eth0

this gives:

# /sbin/ip ad
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
link/ether 00:06:5b:a2:b3:8a brd ff:ff:ff:ff:ff:ff
inet 192.168.1.1 peer 192.168.5.1/32 scope global eth0

Does that do what you want?


Chris

--
Chris Friesen | MailStop: 043/33/F10
Nortel Networks | work: (613) 765-0557
3500 Carling Avenue | fax: (613) 765-2986
Nepean, ON K2H 8E9 Canada | email: cfriesen@nortelnetworks.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.043 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site