Solved

How to Change Interface on Cisco IOU

Posted on 2016-08-03
11
72 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 7

Expert Comment

by:James Bilous
Comment Utility
Yup:

ifconfig eth0 192.168.99.5 netmask 255.255.255.0 up

Open in new window

0
 

Author Comment

by:Member_2_7966113
Comment Utility
James,

Thanks spot on.

Cheers
0
 

Author Comment

by:Member_2_7966113
Comment Utility
James

Can you let me know how to save the configuration?
0
 
LVL 7

Expert Comment

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

Author Comment

by:Member_2_7966113
Comment Utility
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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 7

Expert Comment

by:James Bilous
Comment Utility
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
Comment Utility
Hi James,

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

Thanks
0
 
LVL 7

Expert Comment

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

Author Comment

by:Member_2_7966113
Comment Utility
James,

Do you mean

ifconfig eth0 192.168.99.5 defaultgateway 10.1.1.1
0
 
LVL 7

Accepted Solution

by:
James Bilous earned 500 total points
Comment Utility
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
Comment Utility
Perfect .  Thanks
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now