View Full Version : static ip?
carlwill
2004-09-22, 09:43 AM CDT
On my linux machine I want to set up an IP to do port fowarding to.
I am having a hardtime finding a simple type of command that equal to "ipconfig" to see what I have been assigned.
I also can't seem to change this in Gnome (Fedora 2)
Applications > System Settings > Network >
On devices tab I see my one ethernet adapter & then I see hardware, DNS, & host tabs but none allow me to add a generic 192.168.1.x address.
Can someone help me with both questions?
Vinny
2004-09-22, 10:35 AM CDT
just want to check what you want to do? do you have two eth devices? both installed correctly? if so this link will help?
regards Vinny
carlwill
2004-09-22, 10:41 AM CDT
No, I have one ethernet contorller and I want to assign this controller a ip of 192.168.1.305 that way I can direct any incoming traffic on port 80 via my router to that Linux machine running appache.
BTW - I think you forgot the link but I don't think I full explained myslef right on what I was trying to do. :o
Tashiro
2004-09-22, 12:19 PM CDT
I am having a hardtime finding a simple type of command that equal to "ipconfig" to see what I have been assigned.
The command you are looking for is:
ifconfig
But you must be logged in as root.
Tashiro
carlwill
2004-09-22, 12:49 PM CDT
ok, I was able to do that if I su - but not if I just su. I don't understand why but it worked.
Now how do I change that IP the adapter is assigned?
kosmosik
2004-09-22, 04:36 PM CDT
ok you have router and Linux machine and you want Linux machine to have certain IP adress (and netmask and gateway) so the router can redirect 80 calls to this Linux machine? use netconfig - it is so straightforward that it could not be easier IMHO. you just supply the numbers and save them...
superbnerd
2004-09-22, 04:50 PM CDT
netconf is the command line equivilant of system-config-network. you should just use the gui. just start Applications > System Settings > Network and click on your device and click the edit button. at the bottom, you will se the option to either use dhcp or static. choose static and input the data.
desipher
2004-09-22, 08:44 PM CDT
netconf is the command line equivilant of system-config-network. you should just use the gui. just start Applications > System Settings > Network and click on your device and click the edit button. at the bottom, you will se the option to either use dhcp or static. choose static and input the data. I prefer command line too but for someone trying to setup static ips for the first time in linux gui is best bet. :)
theninja
2004-09-23, 12:56 PM CDT
Old Skewl........
vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=whatever
GATEWAY=router ip
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=ip_goes_here
NETMASK=255.255.250.0
ONBOOT=yes
The /etc/init.d/network restart
theninja
AwPhuch
2004-09-23, 01:08 PM CDT
On my linux machine I want to set up an IP to do port fowarding to.
I am having a hardtime finding a simple type of command that equal to "ipconfig" to see what I have been assigned.
I also can't seem to change this in Gnome (Fedora 2)
Applications > System Settings > Network >
On devices tab I see my one ethernet adapter & then I see hardware, DNS, & host tabs but none allow me to add a generic 192.168.1.x address.
Can someone help me with both questions?
the simple command is "ifconfig"
ifconfig -a lists all pertinant info on your ethernet devices
Hope this helps
Brian
AwPhuch
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.