When using the iptables only config do you have a route in the ipv4
table that will satisfy the destination?
Remember you're using an OUTPUT rule. The packet needs to make
it through the IPv4 stack before it gets to the iptables OUTPUT rules.
Therefore there needs to be a route that satisfies the destination.
It does not need to a MPLS modified route.
I think you're on the right path. Try adding a route to the destination
and that should give you the results you want.
On Mon, Jul 25, 2005 at 02:05:31PM +0200, Jorge Garc?a wrote:
> Hello everybody,
>=20
> I am trying to create an Edge router which packets that ingress the MPLS
> network are enqueued before. Apparently the traffic engineering that I ha=
ve
> done works correctly without MPLS. ALL configurations are the following
>=20
> Traffic Engineering
>=20
> iptables -t mangle -A FORWARD -p icmp -j MARK --set-mark 1
> tc qdisc add dev eth1 root handle 1:0 htb default 12
> tc class add dev eth1 parent 1:0 classid 1:1 htb rate 512kbit ceil 512kbit
> tc class add dev eth1 parent 1:1 classid 1:10 htb rate 256kbit ceil 256kb=
it
> tc class add dev eth1 parent 1:1 classid 1:20 htb rate 256kbit ceil 256kb=
it
> tc filter add dev eth1 parent 1:0 prio 1 protocol ip handle 1 fw flowid 1=
:10
>=20
> I have trayed to introduce MPLS with iptables=20
>=20
> iptables -A OUTPUT -d 10.0.15.0/24 -j spec_nh --spec_nh 0x8847:0x2
>=20
> Where the nhlfe 0x2 is
>=20
> [root@localhost ~]# mpls nhlfe show
> NHLFE entry key 0x00000002 mtu 1496 propagate_ttl
> push gen 100 set eth1 ipv4 192.168.1.1 (24906644 bytes, 49177 pkts,
> 0 dropped)
>=20
> If this is the configuration the packets are marked and classified, but t=
he
> destination is unreachable.=20
>=20
> If I introduce a route where I specify the nhlfe 2, in this case:
> Ip route add 10.0.15.0/24 via 192.168.1.1 spec_nh 0x8847
>=20
> Packets are not classified now.
>=20
>=20
> How a I can classify packets in queues and send it with MPLS ?
>=20
>=20
> Thanks for your attention.
>=20
> Jorge Garcia
> La Salle
>=20
>=20
>=20
>=20
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=3D7477&alloc_id=3D16492&op=3Dclick
> _______________________________________________
> mpls-linux-general mailing list
> mpl...@li...
> https://lists.sourceforge.net/lists/listinfo/mpls-linux-general
--=20
James R. Leu
jl...@mi...
|