Solved

How to Change Interface on Cisco IOU

Posted on 2016-08-03
11
109 Views
Last Modified: 2016-08-11
Hello Experts,

Can someone please let me know how to change the interface eth0 in the image with the appropriate Unix / Linux commands. I would like to change the interface from 192.168.80.160 to 192.168.99.5.

Thank you

Regards
ciscoIOU.png
0
Comment
Question by:Member_2_7966113
  • 6
  • 5
11 Comments
 
LVL 8

Expert Comment

by:James Bilous
ID: 41740782
Yup:

ifconfig eth0 192.168.99.5 netmask 255.255.255.0 up

Open in new window

0
 

Author Comment

by:Member_2_7966113
ID: 41740810
James,

Thanks spot on.

Cheers
0
 

Author Comment

by:Member_2_7966113
ID: 41740813
James

Can you let me know how to save the configuration?
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 8

Expert Comment

by:James Bilous
ID: 41740816
Whats your distro? This usually involves editing a config file which is distribution independent.
0
 

Author Comment

by:Member_2_7966113
ID: 41740830
James,

No idea what distro is.

I thought there would be a simple command to save the configuration - or does it work the same was Windows?
0
 
LVL 8

Expert Comment

by:James Bilous
ID: 41740838
Distro is your linux distribution. For example, you may have Ubuntu, Linux Mint, Suse, Red Hat, etc. etc, all linux based but still different operating systems, each with different ways of saving configurations.

If you are on Ubuntu, for example, you can simply use the "network management" application to set and save the IP for the eth0 interface. You can also edit a configuration file, /etc/network/interfaces, and save it to persist the changes across reboot.
0
 

Author Comment

by:Member_2_7966113
ID: 41741219
Hi James,

Can you show me the linux / unix commands to set the default gateway?

Thanks
0
 
LVL 8

Expert Comment

by:James Bilous
ID: 41741266
You can simply use the same command but leave the IP unchanged while changing the default gateway.
0
 

Author Comment

by:Member_2_7966113
ID: 41744619
James,

Do you mean

ifconfig eth0 192.168.99.5 defaultgateway 10.1.1.1
0
 
LVL 8

Accepted Solution

by:
James Bilous earned 500 total points
ID: 41744646
Ah, sorry, thought you meant mask and not gateway.  

route add default gw 10.1.1.1

Open in new window


should work
0
 

Author Closing Comment

by:Member_2_7966113
ID: 41753094
Perfect .  Thanks
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

From Cisco ASA version 8.3, the Network Address Translation (NAT) configuration has been completely redesigned and it may be helpful to have the syntax configuration for both at a glance. You may as well want to read official Cisco published AS…
Fine Tune your automatic Updates for Ubuntu / Debian
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question