Line 1: |
Line 1: |
| + | {{#TwitterFBLike:|small|like}} |
| | | |
− | <div class="mw-collapsible mw-collapsed" data-collapsetext="Collapse" data-expandtext="More on networking">
| |
− | or if you want to assign a specific IP address (e.g. 192.168.1.2).
| |
− | <syntaxhighlight lang="Bash">
| |
− | ifconfig eth0 192.168.1.2
| |
− | echo "nameserver 192.168.1.254" >> /etc/resolv.conf
| |
− | route add default gw 192.168.1.254 eth0
| |
− | </syntaxhighlight>
| |
| | | |
− | To make your changes permanent you will need to edit the configuration file to make it active on boot. There is only the vi text editor, you can also install nano.
| + | |
− | <syntaxhighlight lang="Bash">
| + | {{#ask: [[Category:Useful Commands]] |
− | yum install nano
| + | |?Has caption|?Has image collection|?Has license|?Category|format=datatables|link=all|headers=show}} |
− | nano /etc/sysconfig/network-scripts/ifcfg-eth0
| + | |
− | </syntaxhighlight> | + | |
− | and set ONBOOT=”YES”
| + | {| class="mw-collapsible mw-collapsed"! style="width: 50em" | '''Header'''|-| style="max-width: 50em" |
| + | | Line1: A long line of text that is used to test the position of the [Collapse] link in my document.<br> Line2: A long line of text that is used to test the position of the [Collapse] link in my document.<br> Line3: A long line of text that is used to test the position of the [Collapse] link in my document.<br> Line4: A long line of text that is used to test the position of the [Collapse] link in my document.<br> Line5: A long line of text that is used to test the position of the [Collapse] link in my document.<br> |
| + | |} |
| + | |
| + | |
| + | {| class="wikitable" |
| + | |- |
| + | ! db !! Key !! Type !! Property !! Default !! Allowed !! Description |
| + | |- |
| + | | Example || Example || Example || Example || Example || Example || Example |
| + | |- |
| + | | Example || Example || Example || Example || Example || Example || Example |
| + | |- |
| + | | Example || Example || Example || Example || Example || Example || Example |
| + | |} |
| + | |
| + | [[wikipedia:Sunflower|Sunflower]] |
| + | |
| + | |
| + | <div class="mw-collapsible mw-collapsed" align="right" data-collapsetext="hide ↑" data-expandtext="more ↓" style="float: left;"> |
| + | {{usefulnote}} |
| </div> | | </div> |
− |
| |
| | | |
| | | |