Archive for the tag 'interface'

How to hide the user interface elements related to mail services from the Control Panel:

1. In the Server Administration Panel, go to Settings > Mail Server Settings (in the Mail group
2. Clear the Enable mail management functions in Panel checkbox.
3. Click OK.

Alternately, you can hide these elements by using the server_pref command line utility:

On Linux systems

/usr/local/psa/bin/server_pref -u -disable-mail-ui true

If you need to restore the mail management controls, you can do so either by going to Server Administration Panel > Settings > Mail Server Settings, and selecting the Enable mail management functions in Panel checkbox, or by using the command line utility:

On Linux systems

/usr/local/psa/bin/server_pref -u -disable-mail-ui false

Reference: http://parallels.net/

How to install a license key through the command line interface.

To install a Panel license key using the Panel CLI, you should first upload it to the machine with the Panel, and then install it with the license utility.

license [--install|-i] [path-to-key-file]

For example:

1. On Linux/Unix:

./license -i /tmp/pp10key.xml

Reference: http://parallels.com/

How to find IPs and IP networks behind each interface

To find the IPs of your network interfaces use ip addr show and to find the IP networks behind each interface use ip route show.

$ ip addr show

1: lo: mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
2: eth0: mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
link/ether 00:08:74:22:5c:61 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.2/24 brd 192.168.1.255 scope global eth0
inet 192.168.1.4/24 brd 192.168.1.255 scope global secondary eth0:1

# ip route show

192.168.52.12 dev ppp0 proto kernel scope link src 117.114.119.119
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.1
169.254.0.0/16 dev eth0 scope link metric 1000
default dev ppp0 scope link

How to set the MTU for network interface

The MTU can be set by editing the configuration file for the device. To see the devices you have use the ifconfig command:

$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 08:00:27:7d:bd:61
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe7d:bd61/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:153050 errors:54 dropped:0 overruns:0 frame:0
TX packets:86060 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:168036386 (168.0 MB) TX bytes:9165208 (9.1 MB)
Interrupt:10 Base address:0xd020

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:480 (480.0 B) TX bytes:480 (480.0 B)

Alternatively, you can use the ip command:

$ ip link list
1: lo: mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
link/ether 08:00:27:7d:bd:61 brd ff:ff:ff:ff:ff:ff

The interface eth0 has an MTU set to 1500 bytes. To change the setting temporarily (to 1200 in this example) issue the following command as root:

ip link set dev eth0 mtu 1200

To make the setting permanent for eth0, edit the configuration file /etc/sysconfig/network-scripts/ifcfg-eth0 and add the line MTU=1200

Determine which network interface card (NIC)Postfix is running on?

The netstat command allows querying of IP addresses and interfaces that the Postfix daemon is listening. By default, Postfix listens on TCP port 25.

By using the netstat and grep commands for port 25, IP addresses that Postfix are listening to can be found by issuing the following command:

netstat -an | grep :25 | grep tcp

Example:

$ netstat -an | grep :25 | grep tcp
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN

Here, Postfix is only listening on the IP address 127.0.0.1.

In order to list each interface’s assigned IP address, issue the following command as root:

ifconfig -a

Next »