LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-26-2017, 01:52 AM   #1
anonguy
LQ Newbie
 
Registered: Apr 2017
Posts: 1

Rep: Reputation: Disabled
Needing help with ifconfig, ifup, ifdown ect on Ubuntu 9.04 (Jaunty) VM


Hello everyone,

I'm needing some assistance with one of my course assignments. Below I have included the assignment description. I'm running my terminal on Ubuntu 9.04 (Jaunty), on a virtual machine.

Using the terminal in Linux, display the configured interfaces. Complete the following:
  • Use the commands "ifconfig," "ifup," and "ifdown" to stop and start the network interface.
  • Provide screenshots.
  • Run the command "ping ctuonline.com."
  • Run the command "nslookup google.com."
  • Provide screenshots.
  • Explain the usage of the commands "ifconfig," "ifup," "ifdown," "nslookup," and "ping." Provide examples of how they can be used to troubleshoot networking issues.
  • Explain the use of File Transfer Protocol (FTP), Domain Name System (DNS), and Secure Shell (SSH) applications on a Linux server.

Below, I have included the code I've configured so far. I don't know where I am going wrong with this. Especially with my ifup, ifdown, ping and nslookup commands.

I don't know why my ping and nslooup commands are not working properly with my designated sites, "ctuonline" and "google". If someone could please explain this it would be a huge help!

I am not exactly certain how to get fix this and my assignment is due by tomorrow. Any help would be greatly appreciated!

Thank you



seed@seed-desktop:~$ ifconfig -a
eth8 Link encap:Ethernet HWaddr 08:00:27:65:05:ad
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.255.255.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:31 errors:0 dropped:0 overruns:0 frame:0
TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2077 (2.0 KB) TX bytes:2077 (2.0 KB)

pan0 Link encap:Ethernet HWaddr 36:d4:f0:a3:65:4f
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

seed@seed-desktop:~$ ifup
ifup: Use --help for help
seed@seed-desktop:~$ ifdown
ifdown: Use --help for help
seed@seed-desktop:~$ ping www.ctuonline.com
^C
seed@seed-desktop:~$ nslookup www.google.com
^C
 
Old 04-26-2017, 06:55 AM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
If you have the manpages then you can use the following commands

Code:
man ifup
man ifdown
the errors already said you could also use the help flag

Code:
ifup --help
ifdown --help
But to answer the question more directly, ifup and ifdown both expect to be passed a device, which you haven't specified. That is about as much as I can give you without fully answering it, as you say this is course assignments I won't give you the answer but as you put in effort, I hope I have steered you in the right direction.
 
Old 04-26-2017, 07:00 AM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: MA, USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 8,037
Blog Entries: 13

Rep: Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486Reputation: 3486
Hi anonguy and welcome to LQ.

Have you been told by your instructor to use Ubuntu 9.04? That version went end of life in OCTOBER, 2010. While it will run and for script purposes it will also run scripts, I'm not sure I advise that you continue to use this version.

Please review the LQ Rules and take note of the specific one saying:
Quote:
Do not post homework assignments verbatim. We're happy to assist if you have specific questions or have hit a stumbling point, however. Let us know what you've already tried and what references you have used (including class notes, books, and searches) and we'll do our best to help. Keep in mind that your instructor might also be an LQ member.
Also suggest you check the Site FAQ for information about how to use [code][/code] tags, or use the advanced edit mode and use the menu option. Any command line outputs or code should be placed within these tags.

Please note that LQ members are not here to do your work for you. You have attempted to do this, please continue, and also please note that while you have said you are showing the code you've used to do this, it really is no code at all, excepting a few command line calls.

Use the man page for these commands and do some research. Simply running a command or two, failing at those attempts, then posting a question to help you with all of this is not the best way to approach this problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ifup/ifdown script? MrUmunhum Linux - Networking 1 02-14-2010 07:09 PM
ifconfig , ifdown, ifup deci007 Linux - Newbie 2 11-13-2009 01:00 AM
slack 9.1 and ifdown/ifup? redbull Linux - Networking 3 04-04-2004 09:11 AM
ifup/ifdown? redbull Linux - Software 2 04-04-2004 04:30 AM
dhclient and ifup/ifdown Atroxic Linux - Networking 0 10-19-2003 12:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration