| 491 | == Configure Secondary Interfaces for Experimental Topology == |
| 492 | |
| 493 | === Description === |
| 494 | |
| 495 | In order for experimenters to use a multisite MyPLC topology, e.g. one which is connected to the [wiki:NetworkCore OpenFlow network core], the MyPLC planetlab nodes must be configured with secondary interfaces whose IPs can communicate with each other. This section documents a particular configuration, for the [wiki:HelloGENI] experimental setup. |
| 496 | |
| 497 | These steps will have limited relevance if you are not participating in a setup such as Hello GENI, and if you are not implementing the campus topology for experimenters described in [wiki:OpenFlow/CampusTopology]. |
| 498 | |
| 499 | === Variables === |
| 500 | |
| 501 | Variables whose names start with `plnode_` are different for each participating planetlab node on your MyPLC. |
| 502 | |
| 503 | || '''Variable''' || '''GPO Values''' || '''Description''' || '''Important Notes''' || |
| 504 | || `<of_vlan>` || 1750 || An !OpenFlow-controlled VLAN used to implement [wiki:OpenFlow/CampusTopology#Port-basedphysicalVLANtranslation Port-based physical VLAN translation] in your environment || || |
| 505 | || `<plnode_fqdn>` || ganel.gpolab.bbn.com || the FQDN of each planetlab node on your MyPLC || || |
| 506 | || `<plnode_eth1_macaddr>` || 00:1b:21:4b:3f:ad || the MAC address of the `eth1` dataplane interface on each planetlab node on your MyPLC || || |
| 507 | || `<plnode_exp_lastoct>` || 51 || the last octet of the dataplane IP addresses assigned to this node, according to [wiki:HelloGENI] || || |
| 508 | |
| 509 | === Reference === |
| 510 | |
| 511 | Follow the steps in this reference to install and configure the `plifconfig` tool for PLC configuration of secondary interfaces, then to use this tool to install VLAN-based subinterfaces on each node. |
| 512 | |
| 513 | 1. Follow the steps in [wiki:GpoLab/MyplcNodeDataplaneInterfaces#SetUptheEnvironmentforVLANInterfaces] on the myplc and on each node to configure your environment to allow PLC to manage VLAN-based subinterfaces. |
| 514 | |
| 515 | 2. Follow the steps in [wiki:GpoLab/MyplcNodeDataplaneInterfaces#SetuptheplifconfigTool] on the myplc to install the plifconfig utility. |
| 516 | |
| 517 | 3. For each planetlab node in your environment, use plifconfig (on myplc) to configure the eth1 subinterface IPs: |
| 518 | A. Configure the base `eth1` interface: |
| 519 | {{{ |
| 520 | sudo plifconfig add -n <plnode_fqdn> -i 0.0.0.0 -m 255.255.255.255 -d eth1 --mac <plnode_eth1_macaddr> |
| 521 | }}} |
| 522 | B. Configure the VLAN subinterface on `eth1`: |
| 523 | {{{ |
| 524 | sudo plifconfig add -n <plnode_fqdn> -i 0.0.0.0 -m 255.255.255.255 -d eth1 --vlan <of_vlan> |
| 525 | }}} |
| 526 | C. Configure each of the 10 subinterface IPs which the Hello GENI topology uses: |
| 527 | {{{ |
| 528 | for subnet in 101 102 103 104 105 106 107 108 109 110; do |
| 529 | sudo plifconfig add -n <plnode_fqdn> -i 10.42.$subnet.<plnode_exp_lastoct> -m 255.255.255.0 -d eth1 --vlan <of_vlan> --alias 42$subnet |
| 530 | done |
| 531 | }}} |
| 532 | D. Verify that the configuration looks correct on the myplc. Here is sample output from a GPO lab node; yours should look similar, with the appropriate IPs and MAC addresses: |
| 533 | {{{ |
| 534 | $ sudo plifconfig list -n ganel.gpolab.bbn.com |
| 535 | |
| 536 | Node: ganel.gpolab.bbn.com |
| 537 | IP: 0.0.0.0 HWaddr: Device: eth1.1750 |
| 538 | IP: 10.42.101.51 HWaddr: Device: eth1.1750:42101 |
| 539 | IP: 0.0.0.0 HWaddr: 00:1b:21:4b:3f:ad Device: eth1 |
| 540 | IP: 10.42.102.51 HWaddr: Device: eth1.1750:42102 |
| 541 | IP: 10.17.10.51 HWaddr: Device: eth1.1710 |
| 542 | IP: 10.42.105.51 HWaddr: Device: eth1.1750:42105 |
| 543 | IP: 10.42.110.51 HWaddr: Device: eth1.1750:42110 |
| 544 | IP: 10.42.106.51 HWaddr: Device: eth1.1750:42106 |
| 545 | IP: 10.42.104.51 HWaddr: Device: eth1.1750:42104 |
| 546 | IP: 10.42.109.51 HWaddr: Device: eth1.1750:42109 |
| 547 | IP: 10.42.108.51 HWaddr: Device: eth1.1750:42108 |
| 548 | IP: 10.42.107.51 HWaddr: Device: eth1.1750:42107 |
| 549 | IP: 10.42.103.51 HWaddr: Device: eth1.1750:42103 |
| 550 | }}} |
| 551 | E. Verify that ifconfig on the node itself reports that all of these interfaces are up, and have IPs assigned. |
| 552 | |
| 553 | |
| 554 | |