From: Norman <baz.nor...@yahoo.com>
Date: Mon, 24 Nov 2008 03:45:14 -0800 (PST)
Local: Mon, Nov 24 2008 6:45 am
Subject: 32bit address issue (ns-3.2 stable)
Hello,
Does anybody know if it is possible to assign /32 address to node (not necessarily using a helper - I'm aware of that bug), that will act as RID (Router ID). I'm basically looking for a sort of Loopback 0 interface (in Cisco terminology). I tried to achieve this goal doing something like this: void makerid(char *ipaddr, Ptr<Node> n) {
Ptr<CsmaChannel> channel = m_channelFactory.Create ()-
>GetObject<CsmaChannel> ();
Ptr<CsmaNetDevice> csmadevice =
m_deviceFactory.Create<CsmaNetDevice> (); csmadevice->SetAddress (Mac48Address::Allocate ()); csmadevice->SetName("rid"); n->AddDevice (csmadevice); Ptr<Queue> queue = m_queueFactory.Create<Queue> (); csmadevice->SetQueue (queue); csmadevice->Attach (channel); Ptr<NetDevice> device;
}
However such a approach doesn't work. In short I tried to create an
extra interface that would act as loopback. What I noticed is that if interface is created (doesn't matter which one i.e. p2p or csma), and has only one "client" i.e. nobody else is connected to that interface it doesn't work. For testing I'm using modified version of "first.cc", and what to
RouterA(RID: 5.2.0.4) .73 <= p2p: 1.0.1.72/30 => .74 RouterB (RID:
One more thing. I'm using global route manage to populate routing
Your input is highly appreciated!
Thanks,
--
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||