User`s guide
Configmenu scripting
Chapter 16 Configuration Menu Interface 273
For example, you can find the XML paths related with IP configuration in
file tmp/cnf/sys/network/ip.cnf as follows
,
To get the IP address of Ethernet 2 port(eth1), run the following command:
To set the IP address of Ethernet 2 port(eth1), run the following command:
To save the changes, run the "set" and "save" commands as shown below:
To apply the changes, issue the “apply” command:
[root@Digi_Passport ~]# more /tmp/cnf/sys/network/ip.cnf
/network/ip/dns1=206.13.28.12
/network/ip/dns2=0.0.0.0
/network/ip/ipconf1/ipconf1/gateway=10.0.0.1
/network/ip/ipconf1/ipconf1/ip_addr=10.0.5.1
/network/ip/ipconf1/ipconf1/ip_mode=1
/network/ip/ipconf1/ipconf1/s_ip_enb=0
/network/ip/ipconf1/ipconf1/subnet=255.255.0.0
/network/ip/ipconf1/ipconf1_ipv6/ip_mode=0
/network/ip/ipconf1/ipconf1_ipv6/ipv6to4_enb=0
/network/ip/ipconf2/ipconf2/ip_addr=192.169.161.5
/network/ip/ipconf2/ipconf2/ip_mode=0
/network/ip/ipconf2/ipconf2/s_ip_enb=0
/network/ip/ipconf2/ipconf2/subnet=255.255.0.0
/network/ip/ipconf2/ipconf2_ipv6/ip_mode=0
/network/ip/ipconf2/ipconf2_ipv6/ipv6to4_enb=0
/network/ip/manual_dns_enb=1
/network/ip/reuse_old_ip=0
/network/ip/src_based_route=0
[root@Digi_Passport ~]# configmenu get /network/ip/ipconf2/
ipconf2/ip_addr
Get : /network/ip/ipconf2/ipconf2/ip_addr=10.0.5.2
[root@Digi_Passport ~]# configmenu set /network/ip/ipconf2/
ipconf2/ip_addr=10.0.5.2
Set : /network/ip/ipconf1/ipconf1/ip_addr=10.0.5.2
[root@Digi_Passport ~]# configmenu set /network/ip/ipconf2/
ipconf2/ip_addr=10.0.5.2 save
Set : /network/ip/ipconf2/ipconf2/ip_addr=10.0.5.2
[root@Digi_Passport ~]# configmenu set /network/ip/ipconf2/
ipconf2/ip_addr=10.0.5.2 save apply
Set : /network/ip/ipconf2/ipconf2/ip_addr=10.0.5.2
.............
Apply Done.










