LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Help needed in 3 problems (https://www.linuxquestions.org/questions/linux-networking-3/help-needed-in-3-problems-32682/)

irfanasim 10-13-2002 09:20 AM

Help needed in 3 problems
 
Dear All

I have following Questions

1 . To make another ethernet interface (virtual) i have created
/etc/sysconfig/network-scripts/ifcfg-eth0-1 file with following
enteries

DEVICE=eth0:0
BOOTPROTO=static
BROADCAST=192.168.0.255
IPADDR=192.168.0.1
NETMASK=255.255.255.0
NETWORK=192.168.0.0
ONBOOT=yes

After that I restarted network service with "service network restart" and to see interfaces i did "ifconfig" but it didnt show the eth0:0 interface . only eth0 and lo0 are there. i dont want to make this interface up manually with any command . Please tell me what things should be done next.

2. /etc/rc.d/rc.local is not working . The commands i put here dont execute during startup. what could be the problem ??

3.when ever i mail any local user my email shown to the local user becomes
root@localhost.localdomain
whereas it should be
root@hostname.mydomain
Can u tell me where can i define my hostname and domain name so that i can get my desired result . I have already configured /etc/hosts with following enteries:

127.0.0.1 hostname localhost.localdomain. localhost

192.168.0.1 hostname hostname.mydomain hostname

I would be grateful for your guidance in solving these problems

Irfan Asim

unSpawn 10-14-2002 04:45 PM

1 . To make another ethernet interface (virtual) i have created
/etc/sysconfig/network-scripts/ifcfg-eth0-1 file

"cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:1", then edit ifcfg-eth0:1.

2. /etc/rc.d/rc.local is not working . The commands i put here(...)
Example? If you're not sure what you script is ok, make it a separate script, run it as "sh -x <scriptname>" to see its gory details expanded, or at least wrap the commands in quotes and echo them.

3. Your Mail Tranfer Agent (MTA), option "DM" for sendmail, Masquerade_as.


All times are GMT -5. The time now is 08:00 AM.