Changes

Jump to: navigation, search

OPS335 Lab 1

307 bytes added, 16:06, 12 January 2016
no edit summary
== Check Current Network Settings == In OPS235 you've used the '''ifconfig''' and route commands. In this course we'll use the '''ip''' command instead (you're welcome to use the old commands but you're expected to know the new ones too). The following table displays a comparison between ipconfig and ip commands, as well as other common commands to obtain your current settings network setting: <table border="1" cellspacing="0" cellpadding="2"><tr><td>Purpose</td><td>Older Method (command)</td><td>Newer Method (command)</td></tr><tr> <td>Obtain IP ADDRESS and Subnet Mask</td><td>ifconfig</td><td>ip address</td></tr> <tr> <td>Obtain Default Gateway</td><td>route -n</td><td>ip route</td></tr> <tr> <td>Obtain DNS Server</td><td>nslookup</td><td>more resolv.conf</td></tr> <tr> <td>Purpose</td><td>uname -n</td><td>Same</td></tr> </tble>
In OPS235 you've used the ifconfig and route commands. In this course we'll use the ip command instead (you're welcome to use the old commands but you're expected to know the new ones too).
* To get the IP address and subnet mask for all the interfaces:
** Old: '''ifconfig'''
** New: '''ip address'''
* To get your default gateway:
** Old: '''route -n'''
** New: '''ip route'''
* To check what DNS server you're using:
** Old and new: '''resolv.conf'''
* To check your hostname:
** Old and new: '''uname -n'''
== Make persistent changes ==
13,420
edits

Navigation menu