Change ONOS GUI Port

ONOS GUI by default use port 8181. This configuration can be change if you need to secure or use port 8181 for another function.

go into /opt/onos directory.

cd /opt/onos

and change the port in this files

apache-karaf-3.0.8/etc/org.ops4j.pax.web.cfg
apache-karaf-3.0.8/system/org/ops4j/pax/web/pax-web-features/3.2.9/pax-web-features-3.2.9-features.xml
apache-karaf-3.0.8/system/org/ops4j/pax/web/pax-web-features/3.2.9/pax-web-features-3.2.9-jettyconfig.xml
ubuntu@ubuntu:/opt/onos$ cat apache-karaf-3.0.8/etc/org.ops4j.pax.web.cfg
org.osgi.service.http.port=9191

ubuntu@ubuntu:/opt/onos$ cat apache-karaf-3.0.8/system/org/ops4j/pax/web/pax-web-features/3.2.9/pax-web-features-3.2.9-features.xml | grep 9191
            org.osgi.service.http.port=9191

ubuntu@ubuntu:/opt/onos$ cat apache-karaf-3.0.8/system/org/ops4j/pax/web/pax-web-features/3.2.9/pax-web-features-3.2.9-jettyconfig.xml | grep 9191
                    <Property name="jetty.port" default="9191" />

restart or start ONOS

systemctl start onos
systemctl status onos

Check the port Open

ubuntu@ubuntu:/opt/onos$ netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 *:ssh                   *:*                     LISTEN     
tcp6       0      0 [::]:11990              [::]:*                  LISTEN     
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN     
tcp6       0      0 [::]:6653               [::]:*                  LISTEN     
tcp6       0      0 localhost:44255         [::]:*                  LISTEN     
tcp6       0      0 [::]:8101               [::]:*                  LISTEN     
tcp6       0      0 [::]:9191               [::]:*                  LISTEN     
tcp6       0      0 [::]:6633               [::]:*                  LISTEN     
tcp6       0      0 [::]:9876               [::]:*                  LISTEN     
udp        0      0 *:bootpc

Comments are closed.