1758622 Members
2136 Online
108874 Solutions
New Discussion юеВ

Re: telnet

 
Baiju Kumar.B_1
Advisor

telnet

Dear all what is the procedure for assigning ip aliase for hp .suppose i have one server with ip addres 21.2.9.10 and i want to set an ip aliase to address and ip to 172.6.10.4 and connect to other network.first one is my internal local lan and second ip for intranet (wan connection).after that i want to give local telnet and ftp access to the server but to be set as no telnet or ftp connection from intranet .i donot have any firewall server directly connected to wan through router and ll

regards
bkb
nothing is impossible
3 REPLIES 3
Gurumanickam
Frequent Advisor

Re: telnet

hi,

you can use ifconfig command or you can directly edit the file /etc/rc.config.d/netconf
ex:

ifconfig lan0:1 inet ipaddress mask netmask

edit /etc/rc.config.d/netconf
add the following entry

INTERFACE_NAME[0:1]=lan0
IP_ADDRESS[0:1]="newip"
SUBNET_MASK[0:1]="netmask"
BROADCAST_ADDRESS[0:1]=""
INTERFACE_STATE[0:1]=""

start the services or reboot the server

/sbin/init.d/net start

Thanks
Be an expert
Ivan Krastev
Honored Contributor

Re: telnet

Correct syntax is :

if you have alias for lan0

INTERFACE_NAME[0]=lan0
.
.
.
.

INTERFACE_NAME[1]=lan0:1
.
.
.
.


regards,
ivan
Gurumanickam
Frequent Advisor

Re: telnet

sorry

the correct syntax is

INTERFACE_NAME[0]=lan0:0
IP_ADDRESS[0]=10.1.1.29
SUBNET_MASK[0]="255.255.0.0"
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
INTERFACE_MODULES[0]=""


INTERFACE_NAME[1]=lan0:1
IP_ADDRESS[1]=ip
SUBNET_MASK[1]="mask"
BROADCAST_ADDRESS[1]=""
INTERFACE_STATE[1]=""
INTERFACE_MODULES[1]=""
Be an expert