Site Tools


linux:suse:network

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
linux:suse:network [2014/05/27 13:50] – [Ports] lunetikklinux:suse:network [2017/03/01 12:50] – external edit 127.0.0.1
Line 1: Line 1:
 ====== Network ====== ====== Network ======
-\\+
 ===== Ports ===== ===== Ports =====
-\\+
 ^Port^Protocol^ ^Port^Protocol^
 |  20 + 21  |  FTP  | |  20 + 21  |  FTP  |
 |  22  |  SSH  |   |  22  |  SSH  |  
 |  25  |  SMTP  |  |  25  |  SMTP  | 
-|  80  |  http  | +|  80  |  HTTP  | 
-|  137 + 139  |  TCP/UDP - Samba  | +|  137 + 139  |  TCP/UDP - SMB/Samba  | 
-|  443  |  https  |+|  443  |  HTTPS  |
 |  8080  |  Proxy  | |  8080  |  Proxy  |
 |  3389  |  RDP  | |  3389  |  RDP  |
 |  3306  |  MySQL  |  |  3306  |  MySQL  | 
 +
 +===== Configuration =====
 +
 +
 +==== Proxy ====
 +
 +For your account only edit:
 +<code>
 +sudo vi /home/<username>/.bashrc
 +</code>
 +\\
 +For global proxy edit:
 +<code>
 +sudo vi /etc/profile
 +</code>
 +add
 +<code>
 +export http_proxy=http://10.0.0.1:8080
 +</code>
 +\\
 +Reload your configuration
 +<code>
 +source /home/<username>/.bashrc
 +
 +or
 +
 +source /etc/profile
 +</code>
 +
 +
 +==== Change your IP ====
 +
 +Edit /etc/network/interfaces:
 +<code>
 +sudo vi /etc/network/interfaces
 +</code>
 +and add
 +<code>
 +auto eth0
 +iface eth0 inet static
 +        address 10.0.0.2
 +        netmask 255.0.0.0
 +        network 10.0.0.0
 +        broadcast 10.0.0.255
 +        gateway 10.0.0.1
 +        dns-nameservers 10.0.0.1
 +</code>
 +Restart your networkinterface
 +<code>
 +/etc/init.d/networking restart
 +</code>
 +
 +
 +==== Join a domain and change hostname ====
 +
 +Edit /etc/hosts
 +<code>
 +sudo vi /etc/hosts
 +</code>
 +and add
 +<code>
 +127.0.0.1       localhost.localdomain localhost
 +127.0.1.1       ubuntu.lunetikk.de ubuntu
 +10.0.0.2        ubuntu.lunetikk.de ubuntu
 +</code>
 +\\
 +\\
 +Open /etc/hostname and change the entry to your new hostname (for example: ubuntu)
 +<code>
 +sudo vi /etc/hostname
 +</code>
 +Reload your hostname
 +<code>
 +hostname –F /etc/hostname
 +</code>
 +\\
 +\\
 +~~DISCUSSION~~
linux/suse/network.txt · Last modified: 2018/12/20 17:44 by lunetikk