Setting up a static IP address

YDL running on the Sony Playstation 3

Moderator: billb

Setting up a static IP address

Postby dan_f14 » 14 Feb 2010, 12:34

I'm having problems setting up a static IP on my ethernet connection for my ps3. I have set it up using the system-config-network application but it seems to have a bug and default to DHCP and consequently its not at the IP address I wish the ps3 to be on. I'm just about at my wits end. From information I have gathered I think I might have to change the configuration files used to get around the bug. If that is the case could somebody inform me of the correct configuration files to change as I do not want to change the wrong ones. Also if there is an easier way around this issue then I would much prefer to do that.

Basically I need my ps3 to be on a static IP so that I can setup portforwarding for bittorrent as I've read its supposed to increase the speed. I'm using Transmission at the moment and did have speeds of around 100kbps however at the moment Im lucky if I can reach 1kbps so I think there must be some network problem.

If anyone can help me setup a static IP address for my PS3 and also help me configure a bittorrent client to work properly on the ps3 then I would be more than grateful.

Cheers
Dan
dan_f14
ydl beginner
ydl beginner
 
Posts: 34
Joined: 23 Nov 2009, 23:13

Re: Setting up a static IP address

Postby CronoCloud » 14 Feb 2010, 16:56

Mine's static. For it to work properly, since I'm using the wired connection, I had to delete the other connection listed. Then I just make sure the Devices tab is selected and then click Edit in the Network configuration window. Then under General there's that "Statically set IP addresses" radio button.

Ron Rogers Jr. (CronoCloud)
CECHE01 PS3 (MGS4 80GB Bundle) without OtherOS and with an upgraded 320GB HD
Running Fedora 23 on a Compaq Presario CQ5320F upgraded with a Phenom X4 and GT640
Vizio E221A1 22" 1080P TV with HDMI, using 1080P over HDMI
PSN ID: CronoCloudAuron
User avatar
CronoCloud
Moderator
Moderator
 
Posts: 523
Joined: 21 Oct 2006, 05:48
Location: Central Illinois, USA

Re: Setting up a static IP address

Postby dan_f14 » 14 Feb 2010, 18:42

I've tried that and it doesn't seem to work. Everytime I reboot it goes to DHCP. If I deactivate and activate the same connection it then goes to the correct ip address and everything works. However it is a little unacceptable to have to do this everytime. I have read on the internet about this bug in Ubuntu 8.10 when using the gnome-network connection manager. I am running ydl 6.2 if that makes any difference. I find it odd that following the guides on the internet that I do not have this file /etc/network/interfaces so I can't attempt to fix it using the information I've found.

So far I have tried editing the eth:0 connection to static ip address. I've tried creating a new connection eth:1 and setting up a static ip address. I have deleted wlan:0 and that doesn't make any difference. I've deleted eth:0 and it still somehow connects with DHCP. I've deleted everything and started again and I get the same problems. As soon as it boots up I can see that it has connected to the wrong ip address. Yet if I deactivate and activate the edited eth:0 connection then it connects to the static ip address that I have assigned. I don't know what else to try.

Is the same bug present in ydl 6.2 thats in Ubuntu 8.10? Or is it a different bug I have come across?
dan_f14
ydl beginner
ydl beginner
 
Posts: 34
Joined: 23 Nov 2009, 23:13

Re: Setting up a static IP address

Postby ales » 15 Feb 2010, 07:59

Well, whats's the relation between GameOS ip address and the YDL one? Could they be different? I always thought about this but never actually got to try it myself. Did you change to static in GamesOS as well?
ales
ydl newbie
ydl newbie
 
Posts: 8
Joined: 19 Feb 2008, 14:37

Re: Setting up a static IP address

Postby dan_f14 » 15 Feb 2010, 13:43

I think thats the problem actually. I think I originally assigned an ip address to the game os account as in the router it has my mac address and an ip address which I noticed it kept going to on ydl. So even though it defaults to DHCP (I think) my router assigns it a static ip address because of its mac address. So I just changed a few settings and it appears to be working, so in a round about way I seem to have the outcome that I wanted, just by a different means.

Anyway thanks for the help
Dan
dan_f14
ydl beginner
ydl beginner
 
Posts: 34
Joined: 23 Nov 2009, 23:13

Re: Setting up a static IP address

Postby ales » 27 Feb 2010, 09:37

Going back to my previous post: I have set fixed IP address for GameOS while YDL still uses dynamic one. This allows me to block Internet access for GameOS on router level and keep YDL free. I wanted to do this for some time now. Sorry, Sony, no more games.
ales
ydl newbie
ydl newbie
 
Posts: 8
Joined: 19 Feb 2008, 14:37

Re: Setting up a static IP address

Postby dan_f14 » 27 Feb 2010, 21:57

Well Im still having problems with static ip address over ethernet connection. MY ps3 has a static ip address but ydl does not connect anywhere near that. It tends to be either 192.168.2.2 or 192.168.2.4, my ps3 static ip address is 192.168.2.75, anyway the work around is I just find out what ip address ydl is using ifconfig then change my routers portforwarding to the correct ip. I've tried everything I can think off so unless someone can post me the work around for ydl 6.2 then I am stuck with it defaulting to DCHP :(
dan_f14
ydl beginner
ydl beginner
 
Posts: 34
Joined: 23 Nov 2009, 23:13

Re: Setting up a static IP address

Postby ppietro » 28 Feb 2010, 02:06

dan_f14 wrote:Well Im still having problems with static ip address over ethernet connection. MY ps3 has a static ip address but ydl does not connect anywhere near that. It tends to be either 192.168.2.2 or 192.168.2.4, my ps3 static ip address is 192.168.2.75, anyway the work around is I just find out what ip address ydl is using ifconfig then change my routers portforwarding to the correct ip. I've tried everything I can think off so unless someone can post me the work around for ydl 6.2 then I am stuck with it defaulting to DCHP :(


One option that works for me is using my router's "Static DHCP" feature. What this does is look at the MAC address, and always assign it the same IP address, even though it's DHCP. Then, since I always know what DHCP address my PS3 is going to get, I can use that in the Port Forwarding/Firewall section, etc.

BTW - This is different from a true Static IP, which is something your ISP provides, and you enter manually.

I don't know if your router has that featuer or not, but if it does, that would solve your issue, I think.

Cheers,
Paul
User avatar
ppietro
Site Admin
Site Admin
 
Posts: 4965
Joined: 13 Sep 2007, 22:18

Re: Setting up a static IP address

Postby dan_f14 » 01 Mar 2010, 23:03

Unfortunately my router does not support the static DHCP :(

Perhaps when I have more time I will find a solution. I think on one of the forums I come across mentioned switching from the default gnome network manager to wicd (or something like that). I thought wicd was for wireless though and not ethernet.
dan_f14
ydl beginner
ydl beginner
 
Posts: 34
Joined: 23 Nov 2009, 23:13

Re: Setting up a static IP address

Postby ppietro » 01 Mar 2010, 23:57

dan_f14 wrote:Unfortunately my router does not support the static DHCP :(

Perhaps when I have more time I will find a solution. I think on one of the forums I come across mentioned switching from the default gnome network manager to wicd (or something like that). I thought wicd was for wireless though and not ethernet.


WICD = Wireless Interface Connection Daemon

However - documentation suggests you can use it for Wired connections. I've never used it that way, so I'm not sure what it will do in YDL - they've kind of tailored it to the wireless connection.

Cheers,
Paul
User avatar
ppietro
Site Admin
Site Admin
 
Posts: 4965
Joined: 13 Sep 2007, 22:18

Re: Setting up a static IP address

Postby CronoCloud » 03 Mar 2010, 01:47

Show us the results of:

cat /etc/sysconfig/network-scripts/ifcfg-eth0
cat /etc/sysconfig/networking/devices/ifcfg-eth0
cat /etc/sysconfig/networking/profiles/default/ifcfg-eth0


If necessary you can edit those manually. Also, I don't think that it's been mentioned is that you have to save your changes to your network configuration you make with the network configuration utility system-config-network, if you exit without doing so, it won't save your changes.

Ron Rogers Jr. (CronoCloud)
CECHE01 PS3 (MGS4 80GB Bundle) without OtherOS and with an upgraded 320GB HD
Running Fedora 23 on a Compaq Presario CQ5320F upgraded with a Phenom X4 and GT640
Vizio E221A1 22" 1080P TV with HDMI, using 1080P over HDMI
PSN ID: CronoCloudAuron
User avatar
CronoCloud
Moderator
Moderator
 
Posts: 523
Joined: 21 Oct 2006, 05:48
Location: Central Illinois, USA

Re: Setting up a static IP address

Postby dan_f14 » 14 Mar 2010, 10:44

Here are the results of the commands you have asked me to issue.

Code: Select all
[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
GATEWAY=192.168.2.1
TYPE=Ethernet
DEVICE=eth0
HWADDR=00:19:c5:71:42:52
BOOTPROTO=none
NETMASK=255.255.255.0
IPADDR=192.168.2.101
ONBOOT=yes
USERCTL=no
IPV6INIT=no
PEERDNS=yes
[root@localhost ~]# cat /etc/sysconfig/networking/devices/ifcfg-eth0
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
GATEWAY=192.168.2.1
TYPE=Ethernet
DEVICE=eth0
HWADDR=00:19:c5:71:42:52
BOOTPROTO=none
NETMASK=255.255.255.0
IPADDR=192.168.2.101
ONBOOT=yes
USERCTL=no
IPV6INIT=no
PEERDNS=yes
[root@localhost ~]# cat /etc/sysconfig/networking/profiles/default/ifcfg-eth0
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
GATEWAY=192.168.2.1
TYPE=Ethernet
DEVICE=eth0
HWADDR=00:19:c5:71:42:52
BOOTPROTO=none
NETMASK=255.255.255.0
IPADDR=192.168.2.101
ONBOOT=yes
USERCTL=no
IPV6INIT=no
PEERDNS=yes



From what I can gather from the output it appears to have the IPADDR correct, or at least the one I have input into the network configuration utility. However as can be seen from ifconfig it doesn't use the static ip that I have setup.

Code: Select all
[root@localhost ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:19:C5:71:42:52 
          inet addr:192.168.2.5  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::219:c5ff:fe71:4252/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11430079 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14784583 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:5951258021 (5.5 GiB)  TX bytes:13036084424 (12.1 GiB)
          Interrupt:52

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:65 errors:0 dropped:0 overruns:0 frame:0
          TX packets:65 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:10051 (9.8 KiB)  TX bytes:10051 (9.8 KiB)

wlan0     Link encap:Ethernet  HWaddr 00:19:C5:71:42:52 
          inet6 addr: fe80::219:c5ff:fe71:4252/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:5292 (5.1 KiB)



When my ps3 boots up and ydl starts up it mentions leasing an address which must have been assigned by DHCP. That address is then used when ydl finally loads up. I'm using ydl 6.2 if that makes any difference. If I disable the connection (using network manager) and then enable it again then it does put it to the correct ip address that I have assigned. From what I can gather the problem is when the ps3 is started and it gets an ip address (which it must get from DHCP) ydl then sticks with that ip address unless the connection is manually restarted.

I don't know whether this is related or not but on shutting down ydl, when its listing all the services it is stopping it will say something like:
stopping wlan0: ok
stopping eth0: Failed

I'm wondering whether that has anything to do with the problem.

Cheers
Dan
dan_f14
ydl beginner
ydl beginner
 
Posts: 34
Joined: 23 Nov 2009, 23:13

Re: Setting up a static IP address

Postby CronoCloud » 15 Mar 2010, 01:56

dan_f14 wrote:

I don't know whether this is related or not but on shutting down ydl, when its listing all the services it is stopping it will say something like:
stopping wlan0: ok
stopping eth0: Failed

I'm wondering whether that has anything to do with the problem.


Dan


could be. Are there any other files in the /etc/sysconfig/networking/profiles/default/ directory?

Also you can quickly stop and start networkin in a terminal with:

ifdown eth0 stops networking
ifup eth0 starts it back up

Ron Rogers Jr. (CronoCloud)
CECHE01 PS3 (MGS4 80GB Bundle) without OtherOS and with an upgraded 320GB HD
Running Fedora 23 on a Compaq Presario CQ5320F upgraded with a Phenom X4 and GT640
Vizio E221A1 22" 1080P TV with HDMI, using 1080P over HDMI
PSN ID: CronoCloudAuron
User avatar
CronoCloud
Moderator
Moderator
 
Posts: 523
Joined: 21 Oct 2006, 05:48
Location: Central Illinois, USA

Re: Setting up a static IP address

Postby dan_f14 » 15 Mar 2010, 20:03

These are the files found in /etc/sysconfig/networking/profiles/default/

[root@localhost ~]# cd /etc/sysconfig/networking/profiles/default/
[root@localhost default]# ls
hosts ifcfg-eth0 network resolv.conf
[root@localhost default]#


Cheers
Dan
dan_f14
ydl beginner
ydl beginner
 
Posts: 34
Joined: 23 Nov 2009, 23:13

Re: Setting up a static IP address

Postby Larry214 » 20 Mar 2010, 04:08

Dan,

I am having the same problem. I am building a cluster of 8 PS3s. A few of them have the same problem you described. The issue is with the udhcpc service . See this link (viewtopic.php?f=19&t=4963&p=27810&hilit=udhcpc#p27810).

My solution is to add a command to the start file that basically restarts the network service after the system initializes. To do this edit etc/rc.local file.
Add the line /sbin/service network restart and then save and reboot.

This should get your static IP to come up each time. I did this earlier today and it still seems to be working.

Good Luck!

Larry
Larry214
ydl newbie
ydl newbie
 
Posts: 2
Joined: 20 Mar 2010, 03:00

Next

Return to Playstation 3

Who is online

Users browsing this forum: No registered users and 22 guests

cron