Re: How to configure an ethernet dev as PtP ?

From: Chris Friesen (cfriesen@nortelnetworks.com)
Date: Tue Apr 15 2003 - 09:50:52 EST


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/



This archive was generated by hypermail 2b29 : Tue Apr 15 2003 - 22:00:36 EST