Re: [mpls-linux-general] Binding to FEC.
Status: Beta
Brought to you by:
jleu
From: James R. L. <jl...@mi...> - 2002-01-30 19:19:47
|
Sorry about that I gave you the wrong command line. iptables -A OUTPUT -d 192.168.1.0/24 -j MPLS --set-key 0x2 ^ Make sure you patched iptables, then do a full make install. iptables must be run as root (it needs to load dynamic libraries which are places in your hosts files system via 'make install') -A OUTPUT adds this rule to the OUTPUT netfilter. --set-key <key> is what bind the packet going to the destination to the outgoing label. In the above example 0x2 is the key (found by looking in /proc/net/mpls_output) for the outgoing label you want to use. I hope this helps. Jim PS There is one other person who is using the diffserv instructions. If you would like I could include him in the e-mails and he might be able to help out. Also, he has been finding lots of bugs, so make sure to ask when things that 'should' work, aren't. On Wed, Jan 30, 2002 at 12:39:28AM +0800, ncc49a wrote: > Hi James, > > In a previous posting, you provided me with the following instruction to bind to an FEC. > > >> iptables -O OUTPUT -d 192.168.1.0/24 -j MPLS --set-key 0x2. > > However, I was unable to execute this command. There were errors with the -O OUTPUT part.. May I know what does -O OUTPUT, and --set-key 0x2 do? How can a particular outgoing generic label of say value 16 be binded to the FEC 192.168.1.0/24? > > Thanks a lot for any help provided! > > Paul -- James R. Leu |