RE: [mpls-linux-general] Binding a MOI to a tunnel in kernel 2.6
Status: Beta
Brought to you by:
jleu
|
From: <Jon...@cs...> - 2004-06-03 22:15:15
|
Hi James,
Thanks for your hints on looking at the "dmesg".
It seems that in the current code I should not echo a hex number to moi.
If I use a decimal number, everything seems set but there was a complain
in the dmesg about "assertion failed at net/ipv4/devinet.c (941)"!!!
i.e.,
[root@saturn root]# cat /proc/net/mpls/*
Iface LSpc Refcnt
lo -1 9
eth0 -1 9
eth1 0 7
eth2 0 5
eth3 -1 1
eth4 -1 1
eth5 -1 1
tunnel1 -1 3
MOI Key:0x00000002 Instruction Set
PUSH PUSH(gen 2000)
SET SET(eth1,10.70.10.1)
tunnel1 0x00000002
However, if I looked at the dmesg (see below), there was an
error/warning. Is that a worry??
Thanks again for your help...
Cheers,
Jonathan
[wrong binding]
echo "0x2" > /sys/mpls/mpls_tunnel/mtp-tunnel1/moi=20
*** dmesg ***
MPLS DEBUG net/mpls/mpls_tunnel.c:225:mpls_tunnel_set_moi: enter
MPLS DEBUG net/mpls/mpls_tunnel.c:235:mpls_tunnel_set_moi: reset moi 0
MPLS DEBUG net/mpls/mpls_tunnel.c:239:mpls_tunnel_set_moi: exit
[something happened]
echo "2" > /sys/mpls/mpls_tunnel/mtp-tunnel1/moi
*** dmesg ***
MPLS DEBUG net/mpls/mpls_tunnel.c:225:mpls_tunnel_set_moi: enter
MPLS DEBUG include/net/mpls.h:665:mpls_out_info_hold: moi-2-get 5
MPLS DEBUG net/mpls/mpls_tunnel.c:382:mpls_tunnel_change_mtu: enter
MPLS DEBUG net/mpls/mpls_tunnel.c:385:mpls_tunnel_change_mtu: exit
RTNL: assertion failed at net/ipv4/devinet.c (941)
Call Trace:
[<0226ca6f>] inetdev_event+0x4c/0x14e
[<0212888a>] notifier_call_chain+0x17/0x2b
[<02238944>] dev_set_mtu+0x54/0x5b
[<0228c38d>] mpls_tunnel_set_moi+0x1e5/0x221
[<0228c9de>] mpls_tunnel_store_moi+0x31/0x40
[<0228c9ad>] mpls_tunnel_store_moi+0x0/0x40
[<0228ca3a>] mpls_tunnel_attr_store+0x1a/0x22
[<0217c8d6>] flush_write_buffer+0x1d/0x22
[<0217c900>] sysfs_write_file+0x25/0x38
[<0214ea3d>] vfs_write+0xb8/0xe4
[<0214ead7>] sys_write+0x2c/0x42
MPLS DEBUG net/mpls/mpls_tunnel.c:267:mpls_tunnel_set_moi: exit
=20
> -----Original Message-----
> From: James R. Leu [mailto:jl...@mi...]=20
> Sent: Friday, 4 June 2004 12:01 AM
> To: Chan, Jonathan (ICT Centre, Marsfield)
> Cc: mpl...@li...
> Subject: Re: [mpls-linux-general] Binding a MOI to a tunnel=20
> in kernel 2.6
>=20
>=20
> Can you send me the output of 'dmesg' after doing the above steps?
>=20
> Thanks
>=20
> On Thu, Jun 03, 2004 at 06:32:14PM +1000,=20
> Jon...@cs... wrote:
> > Dear all,
> >=20
> > Just upgraded one of my linux mpls boxes to Fedora Core 2 and linux=20
> > mpls 1.992. Sorry if this question has been asked before... But how=20
> > can I bind a MOI to a tunnel??
> >=20
> > Basically, I tried to use "echo 0xkey >=20
> > /sys/mpls/mpls_tunnel/mtp-tunnel_name/moi. But nothing=20
> seems being set=20
> > if I look at /proc/net/mpls.
> >=20
> > Did I do anything stupid or am I just looking at the wrong place??=20
> > This is the log of events...
> >=20
> > [root@saturn]# mplsadm2 -AO 0 -o=20
> > push:gen:2000:set:eth1:ipv4:10.70.10.1
> > MPLSADM mplsadm.c:692:main: Out segment input: 0
> > MPLSADM mplsadm.c:688:main: Out instr input:
> > push:gen:2000:set:eth1:ipv4:10.70.10.1
> > Key: 0x00000003
> > Out Segment add: Success
> > MPLSADM mplsadm.c:292:fill_instructions: Instruction: push
> > MPLSADM mplsadm.c:229:fill_label: Label type: gen
> > MPLSADM mplsadm.c:292:fill_instructions: Instruction: set
> > MPLSADM mplsadm.c:181:parse_nh_info: eth1
> > MPLSADM mplsadm.c:182:parse_nh_info: 10.70.10.1
> > MPLSADM mplsadm.c:204:parse_nh_info: Nexthop protocol: ipv4
> > MPLSADM mplsadm.c:596:fill_instructions: Length: 2
> > Out Instr: Success
> >=20
> > [root@saturn]# mplsadm2 -AT tunnel1
> > MPLSADM mplsadm.c:696:main: Tunnel input: tunnel1
> >=20
> > [root@saturn]# ifconfig tunnel1 10.70.10.2 netmask 255.255.255.255
> >=20
> > [root@saturn]# mplsadm2 -BO 0x00000003 -T tunnel1
> > MPLSADM mplsadm.c:692:main: Out segment input: 0x00000003 MPLSADM=20
> > mplsadm.c:696:main: Tunnel input: tunnel1 Using mplsadm2 to=20
> > bind/unbind MOIs to tunnels is deprecated in 2.6
> > Use:
> > echo "<key>|0" > /sys/mpls/mpls_tunnel/mtp-tunnel1/moi
> > to bind / unbind a MOI to a tunnel
> > Bind/Unbind MOI: Invalid argument
> >=20
> > [root@saturn]# echo "0x3" > /sys/mpls/mpls_tunnel/mtp-tunnel1/moi
> > =20
> > [root@saturn]# cat /sys/mpls/mpls_tunnel/mtp-tunnel1/moi
> > moi: 0
> >=20
> > [root@saturn]# cat /proc/net/mpls/tunnels
> > tunnel1 0x00000000
> >=20
> > Any comments/suggestions are much appreciated...
> >=20
> > Cheers,
> > Jonathan
> >=20
> >=20
> >=20
> > -------------------------------------------------------
> > This SF.Net email is sponsored by the new InstallShield X.
> > >From Windows to Linux, servers to mobile, InstallShield X=20
> is the one
> > installation-authoring solution that does it all. Learn more and=20
> > evaluate today! http://www.installshield.com/Dev2Dev/0504
> > _______________________________________________
> > mpls-linux-general mailing list=20
> > mpl...@li...
> > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general
>=20
> --=20
> James R. Leu
> jl...@mi...
>=20
|