Static IPs

  • Digg this article
  • Sphinn this article
  • Stumble this article
  • Facebook
  • del.icio.us
  • LinkedIn
  • Twit this article
Posted by John
on Saturday, 19 July 2008
/sbin/ifconfig eth0 192.168.1.101 netmask 255.255.255.0 broadcast 192.168.1.255

Network address by convention would be the lowest: 192.168.1.0 Broadcast address by convention would be the highest: 192.168.1.255 The gateway can be anything, but following convention: 192.168.1.1

Note: the highest and lowest addresses are based on the netmask. The previous example is based on a netmask of 255.255.255.0

also,

/usr/bin/neat  ..gnome gui tool
/usr/bin/netcfg  ..handles all network interfaces
/usr/sbin/system-config-network-tui  ...text user interface
/usr/sbin/netconfig  ..(Only seems to work for first network interface eth0 but not eth1,...)

The ifconfig command does NOT store changes permanently. On reboot changes are lost. Manually add your commands to the end of the file /etc/rc.d/rc.local to execute them upon boot.

Otherwise use the commands netcfg and netconfig, which make permanent changes to the system network configuration files located in /etc/sysconfig/network-scripts/

Streaming Video Question...

  • Digg this article
  • Sphinn this article
  • Stumble this article
  • Facebook
  • del.icio.us
  • LinkedIn
  • Twit this article
Posted by John
on Sunday, 05 August 2007

One day I was stuck with a question and got a bit puzzled…

‘heres the scenario, youve got a music concert going and its streaming from your .net site handling 2,000 users well, suddenly it starts and the users rise to 200,000 and the server keels over, what do you do?’

When you think about it, it’s actually really really easy…

Think about it, the server is running at max CPU capacity, you can’t reboot anything but you need to do something now to keep these 198,000 new users happy and watching the video stream.

Now currently the stream sits within a .net web page and really choking. So, as the video is embedded into the page and coming from a remote server, why not simply create a new static HTML page, add the embedded video stream code (similar to embedding a Flash movie on your page) and point all the users to this static page.

Suddenly your servers back to life and things are running smoothly.

Why?, because .NET comes with a lot of baggage, the .net framework, resource libraries, dll’s, etc. tons which eventually can bog down a server if it’s under pressure and all the users really need to see is the video stream and no fancy extra bits.

Suddenly they’re happy, your happy and your boss is happy (plus you can come in the next day, without having to clear your desk…)

All good,

John.