IPv4NetworkConfigurator problem

21 views
Skip to first unread message

sepide eidie

unread,
Apr 14, 2014, 6:23:27 AM4/14/14
to omn...@googlegroups.com
hi
i use IPv4NetworkConfigurator in ned file to define static ip address to each node, but when i run it, ip addressess didn't apply.
my code is define as below

    parameter : 
    @display("bgb=700,700,grey75");
    xml config = default(xml("<config><interface  hosts = 'Attacker1' address='10.0.0.7' netmask='255.255.255.0'/>
                                                              <interface  hosts = 'Attacker2' address='10.0.0.8' netmask='255.255.255.0'/>
                                                              <interface  hosts = 'node*' address='10.0.0.x' netmask='255.255.255.x'/> </config>"));
    bool  assignAddresses  = default(true);
    submodules:
        nodeA: NA_AdhocHost {
            @display("p=100,300");
        }
        nodeB: NA_AdhocHost {
            @display("p=350,100");
        }
        nodeC: NA_AdhocHost {
            @display("p=400,300");
        }
        nodeD: NA_AdhocHost {
            @display("p=500,450");
        }
        attacker1: NA_AttackerAdhocHost {
            @display("p=250,150");
        }
     attacker2: NA_AttackerAdhocHost {
            @display("p=200,150");
        }
        configurator: IPv4NetworkConfigurator {
            @display("p=80,20");
        }
        channelControl: ChannelControl {
            @display("p=80,70;i=misc/sun");
        }
Reply all
Reply to author
Forward
0 new messages